This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.rivetsystems.seleniumjunit; | |
| import static org.junit.Assert.assertTrue; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import org.apache.commons.io.FileUtils; | |
| import org.junit.After; | |
| import org.junit.Before; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ClientAbortException: java.io.IOException | |
| at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:369) | |
| at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:368) | |
| at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392) | |
| at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381) | |
| ........ | |
| Caused by: java.io.IOException | |
| at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:712) | |
| at org.apache.coyote.http11.InternalAprOutputBuffer$SocketOutputBuffer.doWrite(InternalAprOutputBuffer.java:742) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <property name="new.package" value="uttesh.xxx.yyy" /> | |
| <target name="package_rename" > | |
| <replaceregexp | |
| match="import xxx.yyy*" | |
| replace="import ${new.package}" | |
| byline="true"> | |
| <fileset dir="${src.main.dir}/java/uttesh/xxx/yyy/"> | |
| <include name="**/*.java"/> | |
| </fileset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import static org.testng.Assert.assertEquals; | |
| import static org.testng.Assert.assertTrue; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.web.bind.annotation.ExceptionHandler; | |
| import org.springframework.web.client.RestTemplate; | |
| import org.testng.annotations.BeforeClass; | |
| import org.testng.annotations.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.sql.Timestamp; | |
| import java.util.TimeZone; | |
| import java.util.logging.Logger; | |
| import java.util.*; | |
| public class TimeZoneConvertor { | |
| private static final TimeZone defaultTimeZone = TimeZone.getDefault(); | |
| private static final Logger log = Logger.getLogger("TimeZone Convertor"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.concurrent.CopyOnWriteArrayList; | |
| /* | |
| * Difference between ArrayList and CopyOnWriteArrayList | |
| */ | |
| public class CopyOnWriteArrayListTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void main(String[] args) { | |
| List<Integer> list = new ArrayList<Integer>(); | |
| list.add(67); | |
| list.add(32); | |
| list.add(6); | |
| list.add(4); | |
| list.add(67); | |
| list.add(3); | |
| list.add(6); |
NewerOlder