Update of /cvsroot/tail/Tail/src/test/net/sf/tail/indicator/cache
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13475/src/test/net/sf/tail/indicator/cache
Modified Files:
CachedIndicatorTest.java
Log Message:
Index: CachedIndicatorTest.java
===================================================================
RCS file: /cvsroot/tail/Tail/src/test/net/sf/tail/indicator/cache/CachedIndicatorTest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CachedIndicatorTest.java 8 Aug 2007 18:34:33 -0000 1.11
--- CachedIndicatorTest.java 23 Aug 2007 12:51:12 -0000 1.12
***************
*** 52,84 ****
@Test
! public void testReallyBigCachedEMAExtendsCachedIndicator()
! {
int maxIndex = 1000000;
! List<Tick> ticks = new ArrayList<Tick>(Collections.nCopies(maxIndex, new Tick(0)));
TimeSeries longData = new SampleTimeSeries(ticks);
EMAIndicator quoteEMA = new EMAIndicator(new ClosePriceIndicator(longData), 10);
!
quoteEMA.getValue(maxIndex - 1);
-
- }
@Test
! public void testReallyCachedBigRSINotExtendsCachedIndicator()
! {
int maxIndex = 1000000;
! List<Tick> ticks = new ArrayList<Tick>(Collections.nCopies(maxIndex, new Tick(0)));
TimeSeries longData = new SampleTimeSeries(ticks);
RSIIndicator RSI = new RSIIndicator(new ClosePriceIndicator(longData), 10);
!
RSI.getValue(maxIndex - 1);
!
}
!
@Test
! public void testGetName()
! {
SMAIndicator quoteSMA = new SMAIndicator(new ClosePriceIndicator(data), 3);
! assertEquals("SMAIndicator timeFrame: 3", quoteSMA.getName());
}
}
--- 52,80 ----
@Test
! public void testReallyBigCachedEMAExtendsCachedIndicator() {
int maxIndex = 1000000;
! List<Tick> ticks = new ArrayList<Tick>(Collections.nCopies(maxIndex, new Tick(0)));
TimeSeries longData = new SampleTimeSeries(ticks);
EMAIndicator quoteEMA = new EMAIndicator(new ClosePriceIndicator(longData), 10);
!
quoteEMA.getValue(maxIndex - 1);
+ }
@Test
! public void testReallyCachedBigRSINotExtendsCachedIndicator() {
int maxIndex = 1000000;
! List<Tick> ticks = new ArrayList<Tick>(Collections.nCopies(maxIndex, new Tick(0)));
TimeSeries longData = new SampleTimeSeries(ticks);
RSIIndicator RSI = new RSIIndicator(new ClosePriceIndicator(longData), 10);
!
RSI.getValue(maxIndex - 1);
!
}
!
@Test
! public void testGetName() {
SMAIndicator quoteSMA = new SMAIndicator(new ClosePriceIndicator(data), 3);
! assertEquals("SMAIndicator timeFrame: 3", quoteSMA.getName());
}
}
|