test_class.declarator: janbanery
test_class.original_string: Janbanery janbanery;
test_class.type: Janbanery
test_class.var_name: janbanery
test_class.file: janbanery-core/src/test/java/pl/project13/janbanery/core/dao/LogImplTest.java
test_class.identifier: LogImplTest
test_case.body: @Test
    public void shouldFetchAllAvailable() throws Exception {
      // given
      Log log = janbanery.log();
  
      // when
      List<ProjectLogEntry> all = log.all();
  
      // then
      assertValidProjectLogEntries(all);
      assertThat(all.size()).isEqualTo(100);
    }
test_case.class_method_signature: LogImplTest.shouldFetchAllAvailable()
test_case.full_signature: @Test public void shouldFetchAllAvailable()
test_case.identifier: shouldFetchAllAvailable
test_case.invocations: log all assertValidProjectLogEntries isEqualTo assertThat size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldFetchAllAvailable()
focal_class.declarator: log = LoggerFactory.getLogger(getClass())
focal_class.modifier: private
focal_class.original_string: private Logger log = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: log
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.declarator: currentProject
focal_class.modifier: private
focal_class.original_string: private Project currentProject;
focal_class.type: Project
focal_class.var_name: currentProject
focal_class.declarator: rssConverter = new RssConverter()
focal_class.modifier: private
focal_class.original_string: private RssConverter rssConverter = new RssConverter();
focal_class.type: RssConverter
focal_class.var_name: rssConverter
focal_class.file: janbanery-core/src/main/java/pl/project13/janbanery/core/dao/LogImpl.java
focal_class.identifier: LogImpl
focal_class.interfaces: implements Log
focal_class.class_method_signature: LogImpl.LogImpl(Configuration conf, RestClient restClient)
focal_class.full_signature: public  LogImpl(Configuration conf, RestClient restClient)
focal_class.identifier: LogImpl
focal_class.modifiers: public
focal_class.parameters: (Configuration conf, RestClient restClient)
focal_class.signature:  LogImpl(Configuration conf, RestClient restClient)
focal_class.class_method_signature: LogImpl.all()
focal_class.full_signature: @Override public List<ProjectLogEntry> all()
focal_class.identifier: all
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<ProjectLogEntry>
focal_class.signature: List<ProjectLogEntry> all()
focal_class.class_method_signature: LogImpl.lastOne()
focal_class.full_signature: @Override public ProjectLogEntry lastOne()
focal_class.identifier: lastOne
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ProjectLogEntry
focal_class.signature: ProjectLogEntry lastOne()
focal_class.class_method_signature: LogImpl.last(Integer numberOfActions)
focal_class.full_signature: @Override public List<ProjectLogEntry> last(Integer numberOfActions)
focal_class.identifier: last
focal_class.modifiers: @Override public
focal_class.parameters: (Integer numberOfActions)
focal_class.return: List<ProjectLogEntry>
focal_class.signature: List<ProjectLogEntry> last(Integer numberOfActions)
focal_class.class_method_signature: LogImpl.fresherThan(ProjectLogEntry entry)
focal_class.full_signature: @Override public List<ProjectLogEntry> fresherThan(ProjectLogEntry entry)
focal_class.identifier: fresherThan
focal_class.modifiers: @Override public
focal_class.parameters: (ProjectLogEntry entry)
focal_class.return: List<ProjectLogEntry>
focal_class.signature: List<ProjectLogEntry> fresherThan(ProjectLogEntry entry)
focal_class.class_method_signature: LogImpl.asByteArrayInputStream(String responseBody)
focal_class.full_signature: private ByteArrayInputStream asByteArrayInputStream(String responseBody)
focal_class.identifier: asByteArrayInputStream
focal_class.modifiers: private
focal_class.parameters: (String responseBody)
focal_class.return: ByteArrayInputStream
focal_class.signature: ByteArrayInputStream asByteArrayInputStream(String responseBody)
focal_class.class_method_signature: LogImpl.getDefaultLogUrl()
focal_class.full_signature: private String getDefaultLogUrl()
focal_class.identifier: getDefaultLogUrl
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDefaultLogUrl()
focal_class.class_method_signature: LogImpl.using(Workspace currentWorkspace, Project currentProject)
focal_class.full_signature: public Log using(Workspace currentWorkspace, Project currentProject)
focal_class.identifier: using
focal_class.modifiers: public
focal_class.parameters: (Workspace currentWorkspace, Project currentProject)
focal_class.return: Log
focal_class.signature: Log using(Workspace currentWorkspace, Project currentProject)
focal_method.body: @Override
    public List<ProjectLogEntry> all() throws ServerCommunicationException {
      String url = getDefaultLogUrl();
  
      RestClientResponse response = restClient.doGet(url);
      String responseBody = response.getResponseBody();
  
      ByteArrayInputStream inStream = asByteArrayInputStream(responseBody);
  
      RssResource.Rss rss = rssConverter.fromXml(inStream);
      ProjectLog projectLog = ProjectLog.from(rss);
  
      return projectLog.getItems();
    }
focal_method.class_method_signature: LogImpl.all()
focal_method.full_signature: @Override public List<ProjectLogEntry> all()
focal_method.identifier: all
focal_method.invocations: getDefaultLogUrl doGet getResponseBody asByteArrayInputStream fromXml from getItems
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: List<ProjectLogEntry>
focal_method.signature: List<ProjectLogEntry> all()