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