test_class.declarator: A_NAMESPACE = "a-namespace"
test_class.modifier: private static final
test_class.original_string: private static final String A_NAMESPACE = "a-namespace";
test_class.type: String
test_class.var_name: A_NAMESPACE
test_class.declarator: ANOTHER_NAMESPACE = "another-namespace"
test_class.modifier: private static final
test_class.original_string: private static final String ANOTHER_NAMESPACE = "another-namespace";
test_class.type: String
test_class.var_name: ANOTHER_NAMESPACE
test_class.declarator: KIND_NAME = "FakeEntity"
test_class.modifier: private static final
test_class.original_string: private static final String KIND_NAME = "FakeEntity";
test_class.type: String
test_class.var_name: KIND_NAME
test_class.declarator: PROPERTY_NAME = "property-name"
test_class.modifier: private static final
test_class.original_string: private static final String PROPERTY_NAME = "property-name";
test_class.type: String
test_class.var_name: PROPERTY_NAME
test_class.declarator: A_NAME = "a-name"
test_class.modifier: private static final
test_class.original_string: private static final String A_NAME = "a-name";
test_class.type: String
test_class.var_name: A_NAME
test_class.declarator: ANOTHER_NAME = "another-name"
test_class.modifier: private static final
test_class.original_string: private static final String ANOTHER_NAME = "another-name";
test_class.type: String
test_class.var_name: ANOTHER_NAME
test_class.declarator: namespacesService
test_class.modifier: @Inject
test_class.original_string: @Inject
      NamespacesService namespacesService;
test_class.type: NamespacesService
test_class.var_name: namespacesService
test_class.file: gae-studio/gae-studio-server/src/test/java/com/arcbees/gaestudio/server/service/visualizer/NamespacesServiceImplTest.java
test_class.identifier: NamespacesServiceImplTest
test_class.superclass: extends GaeTestBase
test_case.body: @Test
      public void getNamespaces_twoNamespacesStored_shouldReturnTheTwoNamespaces() {
          // given
          createEntityInNamespace(A_NAMESPACE, KIND_NAME, PROPERTY_NAME, A_NAME);
          createEntityInNamespace(ANOTHER_NAMESPACE, KIND_NAME, PROPERTY_NAME, ANOTHER_NAME);
  
          // when
          List<AppIdNamespaceDto> namespaceDtoList = namespacesService.getNamespaces();
  
          // then
          assertEquals(2, namespaceDtoList.size());
          assertEquals(A_NAMESPACE, namespaceDtoList.get(0).getNamespace());
          assertEquals(ANOTHER_NAMESPACE, namespaceDtoList.get(1).getNamespace());
      }
test_case.class_method_signature: NamespacesServiceImplTest.getNamespaces_twoNamespacesStored_shouldReturnTheTwoNamespaces()
test_case.full_signature: @Test public void getNamespaces_twoNamespacesStored_shouldReturnTheTwoNamespaces()
test_case.identifier: getNamespaces_twoNamespacesStored_shouldReturnTheTwoNamespaces
test_case.invocations: createEntityInNamespace createEntityInNamespace getNamespaces assertEquals size assertEquals getNamespace get assertEquals getNamespace get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getNamespaces_twoNamespacesStored_shouldReturnTheTwoNamespaces()
focal_class.declarator: datastoreHelper
focal_class.modifier: private final
focal_class.original_string: private final DatastoreHelper datastoreHelper;
focal_class.type: DatastoreHelper
focal_class.var_name: datastoreHelper
focal_class.file: gae-studio/gae-studio-server/src/main/java/com/arcbees/gaestudio/server/service/visualizer/NamespacesServiceImpl.java
focal_class.identifier: NamespacesServiceImpl
focal_class.interfaces: implements NamespacesService
focal_class.class_method_signature: NamespacesServiceImpl.NamespacesServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.full_signature: @Inject public  NamespacesServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.identifier: NamespacesServiceImpl
focal_class.modifiers: @Inject public
focal_class.parameters: (
              DatastoreHelper datastoreHelper)
focal_class.signature:  NamespacesServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.class_method_signature: NamespacesServiceImpl.getNamespaces()
focal_class.full_signature: @Override public List<AppIdNamespaceDto> getNamespaces()
focal_class.identifier: getNamespaces
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<AppIdNamespaceDto>
focal_class.signature: List<AppIdNamespaceDto> getNamespaces()
focal_method.body: @Override
      public List<AppIdNamespaceDto> getNamespaces() {
          AppEngineHelper.disableApiHooks();
  
          Iterable<Entity> entities = datastoreHelper.getAllNamespaces();
  
          Iterable<AppIdNamespaceDto> namespaces = FluentIterable.from(entities)
                  .transform(new Function<Entity, AppIdNamespaceDto>() {
                      @Override
                      public AppIdNamespaceDto apply(Entity input) {
                          return new AppIdNamespaceDto(input.getAppId(),
                                  Entities.getNamespaceFromNamespaceKey(input.getKey()));
                      }
                  });
  
          return Lists.newArrayList(namespaces);
      }
focal_method.class_method_signature: NamespacesServiceImpl.getNamespaces()
focal_method.full_signature: @Override public List<AppIdNamespaceDto> getNamespaces()
focal_method.identifier: getNamespaces
focal_method.invocations: disableApiHooks getAllNamespaces transform from getAppId getNamespaceFromNamespaceKey getKey newArrayList
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: List<AppIdNamespaceDto>
focal_method.signature: List<AppIdNamespaceDto> getNamespaces()