예제 #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);
 }