示例#1
0
 @Test
 public void testSetComputingStrategy() {
   StatementComputingStrategy computingStrategy = new StatementComputingStrategyRegular();
   movie.setComputingStrategy(computingStrategy);
   assertEquals(movie.getComputingStrategy(), computingStrategy);
 }
示例#2
0
 @Test
 public void testComputingStrategy() {
   assertEquals(movie.getComputingStrategy(), computingStrategyChildren);
 }