Changeset 389 for tapas/service/test
- Timestamp:
- 03/02/12 18:07:28 (12 years ago)
- Location:
- tapas/service/test/com/ether
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/service/test/com/ether/EtherTest.java
r376 r389 2 2 3 3 import org.jetbrains.annotations.NotNull; 4 import org.junit.Assert; 5 import org.junit.Test; 4 6 5 7 import javax.imageio.ImageIO; … … 9 11 import java.io.File; 10 12 import java.io.Serializable; 13 import java.text.DateFormat; 11 14 import java.text.ParseException; 15 import java.text.SimpleDateFormat; 16 import java.util.Calendar; 17 import java.util.Date; 12 18 13 19 /** … … 16 22 */ 17 23 public class EtherTest 24 extends ServiceEtherTest 18 25 { 26 @Test 27 public void testCreateXML() 28 throws Exception 29 { 30 31 getService().createXMLRequest(); 32 33 } 34 35 19 36 @NotNull 20 37 protected double[] createDataArray( @NotNull final Integer size, @NotNull final Integer begin ) -
tapas/service/test/com/ether/OtherTest.java
r376 r389 20 20 { 21 21 @Test 22 public void test DatesMoisPlusUn()22 public void testCreateXML() 23 23 throws Exception 24 24 { 25 25 26 final DateFormat shortDateFormat = new SimpleDateFormat( "MMyyyy" ); 26 27 final DateFormat completDateFormat = new SimpleDateFormat( "dd-MM-yyyy" ); … … 37 38 } 38 39 39 @Test40 public void testDates()41 throws Exception42 {43 List<Date> dates = new ArrayList<Date>();44 final DateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd" );45 40 46 dates.add( dateFormat.parse( "2007-01-01" ) );47 dates.add( dateFormat.parse( "2007-01-02" ) );48 41 49 final DateFormat shortFormat = new SimpleDateFormat( "yyyy" );50 Set<String> shortDates = new HashSet<String>();51 for ( final Date aDate : dates )52 {53 shortDates.add( shortFormat.format( aDate ) );54 }55 }56 42 } -
tapas/service/test/com/ether/ServiceEtherTest.java
r384 r389 10 10 public ServiceEtherTest() 11 11 { 12 super( " etherService" );12 super( "tapasService" ); 13 13 } 14 14 -
tapas/service/test/com/ether/ServiceTestHelper.java
r376 r389 19 19 { 20 20 return new String[] { 21 "classpath:dao-context.xml", 22 "classpath:service-context.xml", 23 "classpath:hibernate_test.cfg.xml", }; 21 // "classpath:dao-context.xml", 22 "classpath:service-context_test.xml", 23 // "classpath:hibernate_test.cfg.xml", 24 }; 24 25 } 25 26
Note: See TracChangeset
for help on using the changeset viewer.