コード例 #1
0
  public void testScopeRetrivesValueFromStorage() {
    scope.setStorage(storage);
    storage.put(factory.getKind(), "Nu");

    assertEquals(scope.get(factory), "Nu");
  }
コード例 #2
0
  public void testScopeStoresValueInStorage() {
    scope.setStorage(storage);
    scope.get(factory);

    assertEquals(storage.get(factory.getKind()), "Ni");
  }