作者n3oanderson (T. J.)
看板poetry
標題Test
時間Fri Oct 16 18:10:40 2009
public class SelfTest extends InfiniteCycle{
private static Mechanism machanism = Mechanism.working();
private Self self;
@Before
public void setUp(){
cause();
self = (Self)machanism.active(Self.class);
}
@Test
public void testIfExists(){
assertFalse(self.exists());
assertFalse(self.notExists());
}
@Test
public void testIfFreed(){
assertTrue(illusion(self));
assertTrue(yoked(self));
}
}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 86.169.194.134