test_class.declarator: asyncHttpClient
test_class.original_string: AsyncHttpClient asyncHttpClient;
test_class.type: AsyncHttpClient
test_class.var_name: asyncHttpClient
test_class.declarator: configuration
test_class.original_string: Configuration configuration;
test_class.type: Configuration
test_class.var_name: configuration
test_class.declarator: janbaneryFactory
test_class.original_string: JanbaneryFactory janbaneryFactory;
test_class.type: JanbaneryFactory
test_class.var_name: janbaneryFactory
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/JanbaneryFactoryTest.java
test_class.identifier: JanbaneryFactoryTest
test_case.body: @Test
    public void shouldConnectAndKeepUsingUserPassMode() throws Exception {
      // given
      Properties properties = new Properties();
      properties.load(new FileInputStream(VALID_CONF_FILE_LOCATION));
      String user = (String) properties.get("username");
      String password = (String) properties.get("password");
  
      // when
      janbanery = janbaneryFactory.connectAndKeepUsing(user, password);
  
      // then, should use API key mode
      AuthProvider usedAuthProvider = janbanery.getAuthMode();
      assertThat(usedAuthProvider).isInstanceOf(UserPassAuthProvider.class);
    }
test_case.class_method_signature: JanbaneryFactoryTest.shouldConnectAndKeepUsingUserPassMode()
test_case.full_signature: @Test public void shouldConnectAndKeepUsingUserPassMode()
test_case.identifier: shouldConnectAndKeepUsingUserPassMode
test_case.invocations: load get get connectAndKeepUsing getAuthMode isInstanceOf assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldConnectAndKeepUsingUserPassMode()
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: asyncHttpClient
focal_class.modifier: private
focal_class.original_string: private AsyncHttpClient asyncHttpClient;
focal_class.type: AsyncHttpClient
focal_class.var_name: asyncHttpClient
focal_class.declarator: encodedBodyGenerator = new ReflectionBodyGenerator()
focal_class.modifier: private
focal_class.original_string: private ReflectionBodyGenerator encodedBodyGenerator = new ReflectionBodyGenerator();
focal_class.type: ReflectionBodyGenerator
focal_class.var_name: encodedBodyGenerator
focal_class.declarator: gson = GsonFactory.create()
focal_class.modifier: private
focal_class.original_string: private Gson gson = GsonFactory.create();
focal_class.type: Gson
focal_class.var_name: gson
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.file: janbanery-core/src/main/java/pl/project13/janbanery/core/JanbaneryFactory.java
focal_class.identifier: JanbaneryFactory
focal_class.class_method_signature: JanbaneryFactory.JanbaneryFactory()
focal_class.full_signature: public  JanbaneryFactory()
focal_class.identifier: JanbaneryFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  JanbaneryFactory()
focal_class.class_method_signature: JanbaneryFactory.JanbaneryFactory(AsyncHttpClient asyncHttpClient)
focal_class.full_signature: public  JanbaneryFactory(AsyncHttpClient asyncHttpClient)
focal_class.identifier: JanbaneryFactory
focal_class.modifiers: public
focal_class.parameters: (AsyncHttpClient asyncHttpClient)
focal_class.signature:  JanbaneryFactory(AsyncHttpClient asyncHttpClient)
focal_class.class_method_signature: JanbaneryFactory.JanbaneryFactory(RestClient restClient)
focal_class.full_signature: public  JanbaneryFactory(RestClient restClient)
focal_class.identifier: JanbaneryFactory
focal_class.modifiers: public
focal_class.parameters: (RestClient restClient)
focal_class.signature:  JanbaneryFactory(RestClient restClient)
focal_class.class_method_signature: JanbaneryFactory.connectUsing(Configuration configuration)
focal_class.full_signature: public JanbaneryToWorkspace connectUsing(Configuration configuration)
focal_class.identifier: connectUsing
focal_class.modifiers: public
focal_class.parameters: (Configuration configuration)
focal_class.return: JanbaneryToWorkspace
focal_class.signature: JanbaneryToWorkspace connectUsing(Configuration configuration)
focal_class.class_method_signature: JanbaneryFactory.connectUsing(String apiKey)
focal_class.full_signature: public JanbaneryToWorkspace connectUsing(String apiKey)
focal_class.identifier: connectUsing
focal_class.modifiers: public
focal_class.parameters: (String apiKey)
focal_class.return: JanbaneryToWorkspace
focal_class.signature: JanbaneryToWorkspace connectUsing(String apiKey)
focal_class.class_method_signature: JanbaneryFactory.connectUsing(String user, String password)
focal_class.full_signature: public JanbaneryToWorkspace connectUsing(String user, String password)
focal_class.identifier: connectUsing
focal_class.modifiers: public
focal_class.parameters: (String user, String password)
focal_class.return: JanbaneryToWorkspace
focal_class.signature: JanbaneryToWorkspace connectUsing(String user, String password)
focal_class.class_method_signature: JanbaneryFactory.getCurrentUserApiKey(Janbanery janbanery)
focal_class.full_signature: private String getCurrentUserApiKey(Janbanery janbanery)
focal_class.identifier: getCurrentUserApiKey
focal_class.modifiers: private
focal_class.parameters: (Janbanery janbanery)
focal_class.return: String
focal_class.signature: String getCurrentUserApiKey(Janbanery janbanery)
focal_class.class_method_signature: JanbaneryFactory.connectAndKeepUsing(String user, String password)
focal_class.full_signature: public Janbanery connectAndKeepUsing(String user, String password)
focal_class.identifier: connectAndKeepUsing
focal_class.modifiers: public
focal_class.parameters: (String user, String password)
focal_class.return: Janbanery
focal_class.signature: Janbanery connectAndKeepUsing(String user, String password)
focal_class.class_method_signature: JanbaneryFactory.getRestClient(Configuration configuration)
focal_class.full_signature: private RestClient getRestClient(Configuration configuration)
focal_class.identifier: getRestClient
focal_class.modifiers: private
focal_class.parameters: (Configuration configuration)
focal_class.return: RestClient
focal_class.signature: RestClient getRestClient(Configuration configuration)
focal_class.class_method_signature: JanbaneryFactory.setAsyncHttpClient(AsyncHttpClient asyncHttpClient)
focal_class.full_signature: public void setAsyncHttpClient(AsyncHttpClient asyncHttpClient)
focal_class.identifier: setAsyncHttpClient
focal_class.modifiers: public
focal_class.parameters: (AsyncHttpClient asyncHttpClient)
focal_class.return: void
focal_class.signature: void setAsyncHttpClient(AsyncHttpClient asyncHttpClient)
focal_class.class_method_signature: JanbaneryFactory.setEncodedBodyGenerator(ReflectionBodyGenerator encodedBodyGenerator)
focal_class.full_signature: public void setEncodedBodyGenerator(ReflectionBodyGenerator encodedBodyGenerator)
focal_class.identifier: setEncodedBodyGenerator
focal_class.modifiers: public
focal_class.parameters: (ReflectionBodyGenerator encodedBodyGenerator)
focal_class.return: void
focal_class.signature: void setEncodedBodyGenerator(ReflectionBodyGenerator encodedBodyGenerator)
focal_class.class_method_signature: JanbaneryFactory.setGson(Gson gson)
focal_class.full_signature: public void setGson(Gson gson)
focal_class.identifier: setGson
focal_class.modifiers: public
focal_class.parameters: (Gson gson)
focal_class.return: void
focal_class.signature: void setGson(Gson gson)
focal_method.body: public Janbanery connectAndKeepUsing(String user, String password) throws ServerCommunicationException {
      DefaultConfiguration conf = new DefaultConfiguration(user, password);
      RestClient restClient = getRestClient(conf);
      return new Janbanery(conf, restClient);
    }
focal_method.class_method_signature: JanbaneryFactory.connectAndKeepUsing(String user, String password)
focal_method.full_signature: public Janbanery connectAndKeepUsing(String user, String password)
focal_method.identifier: connectAndKeepUsing
focal_method.invocations: getRestClient
focal_method.modifiers: public
focal_method.parameters: (String user, String password)
focal_method.return: Janbanery
focal_method.signature: Janbanery connectAndKeepUsing(String user, String password)