예제 #1
0
 @Test
 public void setSymbolsAreReturned() {
   when(exec.getSymbol("x")).thenReturn("1");
   assertThat(variables.get("x"), is(equalTo("1")));
 }
예제 #2
0
 @Test
 public void unsetSymbolsReturnNull() {
   when(exec.getSymbol("n")).thenReturn(null);
   assertThat(variables.get("n"), is(equalTo(NULL)));
 }