Update of /cvsroot/tail/Tail/src/test/net/sf/tail/strategy In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv32071/src/test/net/sf/tail/strategy Modified Files: SupportStrategyTest.java IndicatorOverIndicatorStrategyTest.java IndicatorCrossedIndicatorStrategyTest.java ResistanceStrategyTest.java MinValueStarterStrategyTest.java Log Message: terminado o reportSerializer e refatorado código Index: IndicatorOverIndicatorStrategyTest.java =================================================================== RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/strategy/IndicatorOverIndicatorStrategyTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** IndicatorOverIndicatorStrategyTest.java 8 Jun 2007 14:59:36 -0000 1.7 --- IndicatorOverIndicatorStrategyTest.java 20 Aug 2007 18:03:57 -0000 1.8 *************** *** 4,8 **** import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import junit.framework.JUnit4TestAdapter; import net.sf.tail.Indicator; import net.sf.tail.Operation; --- 4,7 ---- *************** *** 12,16 **** import net.sf.tail.sample.SampleIndicator; - import org.junit.After; import org.junit.Before; import org.junit.Test; --- 11,14 ---- *************** *** 51,63 **** } - - @After - public void tearDown() throws Exception { - } - - - public static junit.framework.Test suite() { - return new JUnit4TestAdapter(IndicatorOverIndicatorStrategyTest.class); - } - } --- 49,51 ---- Index: IndicatorCrossedIndicatorStrategyTest.java =================================================================== RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/strategy/IndicatorCrossedIndicatorStrategyTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** IndicatorCrossedIndicatorStrategyTest.java 8 Jun 2007 14:59:36 -0000 1.5 --- IndicatorCrossedIndicatorStrategyTest.java 20 Aug 2007 18:03:57 -0000 1.6 *************** *** 5,9 **** import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; - import junit.framework.JUnit4TestAdapter; import net.sf.tail.Indicator; import net.sf.tail.Operation; --- 5,8 ---- *************** *** 120,127 **** } } - - public static junit.framework.Test suite() { - return new JUnit4TestAdapter(IndicatorCrossedIndicatorStrategyTest.class); - } - } --- 119,121 ---- Index: SupportStrategyTest.java =================================================================== RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/strategy/SupportStrategyTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SupportStrategyTest.java 8 Jun 2007 14:59:36 -0000 1.3 --- SupportStrategyTest.java 20 Aug 2007 18:03:57 -0000 1.4 *************** *** 4,8 **** import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import junit.framework.JUnit4TestAdapter; import net.sf.tail.Operation; import net.sf.tail.OperationType; --- 4,7 ---- *************** *** 45,51 **** assertFalse(support.shouldOperate(trade, 5)); } - - public static junit.framework.Test suite() { - return new JUnit4TestAdapter(SupportStrategyTest.class); - } } --- 44,46 ---- Index: ResistanceStrategyTest.java =================================================================== RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/strategy/ResistanceStrategyTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ResistanceStrategyTest.java 8 Jun 2007 14:59:36 -0000 1.3 --- ResistanceStrategyTest.java 20 Aug 2007 18:03:57 -0000 1.4 *************** *** 4,8 **** import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import junit.framework.JUnit4TestAdapter; import net.sf.tail.Operation; import net.sf.tail.OperationType; --- 4,7 ---- *************** *** 52,58 **** assertEquals(new Operation(6, OperationType.SELL), trade.getExit()); } - - public static junit.framework.Test suite() { - return new JUnit4TestAdapter(ResistanceStrategyTest.class); - } } --- 51,53 ---- Index: MinValueStarterStrategyTest.java =================================================================== RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/strategy/MinValueStarterStrategyTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MinValueStarterStrategyTest.java 8 Jun 2007 14:59:36 -0000 1.4 --- MinValueStarterStrategyTest.java 20 Aug 2007 18:03:57 -0000 1.5 *************** *** 4,8 **** import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import junit.framework.JUnit4TestAdapter; import net.sf.tail.Operation; import net.sf.tail.OperationType; --- 4,7 ---- *************** *** 62,68 **** assertFalse(starter.shouldOperate(trade, 4)); } - - public static junit.framework.Test suite() { - return new JUnit4TestAdapter(MinValueStarterStrategyTest.class); - } } --- 61,63 ---- |