test_class.declarator: workspaces
test_class.original_string: Workspaces workspaces;
test_class.type: Workspaces
test_class.var_name: workspaces
test_class.declarator: asyncHttpClient
test_class.original_string: AsyncHttpClient asyncHttpClient;
test_class.type: AsyncHttpClient
test_class.var_name: asyncHttpClient
test_class.file: janbanery-core/src/test/java/pl/project13/janbanery/core/dao/WorkspacesImplTest.java
test_class.identifier: WorkspacesImplTest
test_case.body: @Test(expected = WorkspaceNotFoundException.class)
    public void shouldNotFindFictionalWorkspace() throws Exception {
      // given
      String givenWorkspaceName = "no such workspace exists in kanbanery";
  
      // when
      Workspace workspace = workspaces.byName(givenWorkspaceName);
  
      // then
      assertThat(workspace).isNotNull();
      assertThat(workspace.getId()).isPositive();
      assertThat(workspace.getName()).isEqualTo(givenWorkspaceName);
    }
test_case.class_method_signature: WorkspacesImplTest.shouldNotFindFictionalWorkspace()
test_case.full_signature: @Test(expected = WorkspaceNotFoundException.class) public void shouldNotFindFictionalWorkspace()
test_case.identifier: shouldNotFindFictionalWorkspace
test_case.invocations: byName isNotNull assertThat isPositive assertThat getId isEqualTo assertThat getName
test_case.modifiers: @Test(expected = WorkspaceNotFoundException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldNotFindFictionalWorkspace()
focal_class.declarator: conf
focal_class.modifier: private
focal_class.original_string: private Configuration conf;
focal_class.type: Configuration
focal_class.var_name: conf
focal_class.declarator: restClient
focal_class.modifier: private
focal_class.original_string: private RestClient restClient;
focal_class.type: RestClient
focal_class.var_name: restClient
focal_class.declarator: currentWorkspace
focal_class.modifier: private
focal_class.original_string: private Workspace currentWorkspace;
focal_class.type: Workspace
focal_class.var_name: currentWorkspace
focal_class.file: janbanery-core/src/main/java/pl/project13/janbanery/core/dao/WorkspacesImpl.java
focal_class.identifier: WorkspacesImpl
focal_class.interfaces: implements Workspaces
focal_class.class_method_signature: WorkspacesImpl.WorkspacesImpl(Configuration conf, RestClient restClient)
focal_class.full_signature: public  WorkspacesImpl(Configuration conf, RestClient restClient)
focal_class.identifier: WorkspacesImpl
focal_class.modifiers: public
focal_class.parameters: (Configuration conf, RestClient restClient)
focal_class.signature:  WorkspacesImpl(Configuration conf, RestClient restClient)
focal_class.class_method_signature: WorkspacesImpl.all()
focal_class.full_signature: @Override public List<Workspace> all()
focal_class.identifier: all
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Workspace>
focal_class.signature: List<Workspace> all()
focal_class.class_method_signature: WorkspacesImpl.byName(String name)
focal_class.full_signature: @Override public Workspace byName(String name)
focal_class.identifier: byName
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Workspace
focal_class.signature: Workspace byName(String name)
focal_class.class_method_signature: WorkspacesImpl.current()
focal_class.full_signature: @Override public Workspace current()
focal_class.identifier: current
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Workspace
focal_class.signature: Workspace current()
focal_class.class_method_signature: WorkspacesImpl.using(Workspace currentWorkspace)
focal_class.full_signature: public Workspaces using(Workspace currentWorkspace)
focal_class.identifier: using
focal_class.modifiers: public
focal_class.parameters: (Workspace currentWorkspace)
focal_class.return: Workspaces
focal_class.signature: Workspaces using(Workspace currentWorkspace)
focal_method.body: @Override
    public Workspace byName(String name) throws WorkspaceNotFoundException {
      List<Workspace> allWorkspaces = all();
      for (Workspace workspace : allWorkspaces) {
        if (workspace.getName().equals(name)) {
          return workspace;
        }
      }
      throw new WorkspaceNotFoundException("Could not find workspace named '" + name + "'");
    }
focal_method.class_method_signature: WorkspacesImpl.byName(String name)
focal_method.full_signature: @Override public Workspace byName(String name)
focal_method.identifier: byName
focal_method.invocations: all equals getName
focal_method.modifiers: @Override public
focal_method.parameters: (String name)
focal_method.return: Workspace
focal_method.signature: Workspace byName(String name)