test_class.declarator: HOST_1 = "host1"
test_class.modifier: public static final
test_class.original_string: public static final String HOST_1 = "host1";
test_class.type: String
test_class.var_name: HOST_1
test_class.declarator: HOST_2 = "host2"
test_class.modifier: public static final
test_class.original_string: public static final String HOST_2 = "host2";
test_class.type: String
test_class.var_name: HOST_2
test_class.file: cosmic-agent/src/test/java/com/cloud/agent/service/HostRotatorTest.java
test_class.identifier: HostRotatorTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void test_nextHost_whenHostsListIsEmpty() throws Exception {
          new HostRotator().nextHost();
      }
test_case.class_method_signature: HostRotatorTest.test_nextHost_whenHostsListIsEmpty()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void test_nextHost_whenHostsListIsEmpty()
test_case.identifier: test_nextHost_whenHostsListIsEmpty
test_case.invocations: nextHost
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_nextHost_whenHostsListIsEmpty()
focal_class.declarator: hosts = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<String> hosts = new ArrayList<>();
focal_class.type: List<String>
focal_class.var_name: hosts
focal_class.declarator: hostIndex = -1
focal_class.modifier: private
focal_class.original_string: private int hostIndex = -1;
focal_class.type: int
focal_class.var_name: hostIndex
focal_class.file: cosmic-agent/src/main/java/com/cloud/agent/service/HostRotator.java
focal_class.identifier: HostRotator
focal_class.class_method_signature: HostRotator.addAll(final Collection<? extends String> hosts)
focal_class.full_signature: public void addAll(final Collection<? extends String> hosts)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (final Collection<? extends String> hosts)
focal_class.return: void
focal_class.signature: void addAll(final Collection<? extends String> hosts)
focal_class.class_method_signature: HostRotator.nextHost()
focal_class.full_signature: public String nextHost()
focal_class.identifier: nextHost
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String nextHost()
focal_class.class_method_signature: HostRotator.validateCanRotate()
focal_class.full_signature: private void validateCanRotate()
focal_class.identifier: validateCanRotate
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void validateCanRotate()
focal_class.class_method_signature: HostRotator.incrementHostIndex()
focal_class.full_signature: private void incrementHostIndex()
focal_class.identifier: incrementHostIndex
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void incrementHostIndex()
focal_method.body: public String nextHost() {
          validateCanRotate();
          incrementHostIndex();
          return hosts.get(hostIndex);
      }
focal_method.class_method_signature: HostRotator.nextHost()
focal_method.full_signature: public String nextHost()
focal_method.identifier: nextHost
focal_method.invocations: validateCanRotate incrementHostIndex get
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String nextHost()