Changeset 389 for tapas/service/test


Ignore:
Timestamp:
03/02/12 18:07:28 (12 years ago)
Author:
rboipsl
Message:
 
Location:
tapas/service/test/com/ether
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tapas/service/test/com/ether/EtherTest.java

    r376 r389  
    22 
    33import org.jetbrains.annotations.NotNull; 
     4import org.junit.Assert; 
     5import org.junit.Test; 
    46 
    57import javax.imageio.ImageIO; 
     
    911import java.io.File; 
    1012import java.io.Serializable; 
     13import java.text.DateFormat; 
    1114import java.text.ParseException; 
     15import java.text.SimpleDateFormat; 
     16import java.util.Calendar; 
     17import java.util.Date; 
    1218 
    1319/** 
     
    1622 */ 
    1723public class EtherTest 
     24        extends ServiceEtherTest 
    1825{ 
     26    @Test 
     27    public void testCreateXML() 
     28            throws Exception 
     29    { 
     30 
     31        getService().createXMLRequest(); 
     32 
     33    } 
     34 
     35 
    1936    @NotNull 
    2037    protected double[] createDataArray( @NotNull final Integer size, @NotNull final Integer begin ) 
  • tapas/service/test/com/ether/OtherTest.java

    r376 r389  
    2020{ 
    2121    @Test 
    22     public void testDatesMoisPlusUn() 
     22    public void testCreateXML() 
    2323            throws Exception 
    2424    { 
     25 
    2526        final DateFormat shortDateFormat = new SimpleDateFormat( "MMyyyy" ); 
    2627        final DateFormat completDateFormat = new SimpleDateFormat( "dd-MM-yyyy" ); 
     
    3738    } 
    3839 
    39     @Test 
    40     public void testDates() 
    41             throws Exception 
    42     { 
    43         List<Date> dates = new ArrayList<Date>(); 
    44         final DateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd" ); 
    4540 
    46         dates.add( dateFormat.parse( "2007-01-01" ) ); 
    47         dates.add( dateFormat.parse( "2007-01-02" ) ); 
    4841 
    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     } 
    5642} 
  • tapas/service/test/com/ether/ServiceEtherTest.java

    r384 r389  
    1010    public ServiceEtherTest() 
    1111    { 
    12         super( "etherService" ); 
     12        super( "tapasService" ); 
    1313    } 
    1414 
  • tapas/service/test/com/ether/ServiceTestHelper.java

    r376 r389  
    1919    { 
    2020                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        }; 
    2425    } 
    2526 
Note: See TracChangeset for help on using the changeset viewer.