test_class.file: checker/src/test/java/com/fooock/robotstxt/api/model/AllowDataTest.java
test_class.identifier: AllowDataTest
test_case.body: @Test
      public void testAgent() {
          AllowData d1 = new AllowData();
          d1.setAgent(null);
          assertFalse(d1.isAgentValid());
  
          AllowData d2 = new AllowData();
          d2.setAgent("");
          assertFalse(d2.isAgentValid());
  
          AllowData d3 = new AllowData();
          d3.setAgent("AwesomeBot");
          assertTrue(d3.isAgentValid());
      }
test_case.class_method_signature: AllowDataTest.testAgent()
test_case.full_signature: @Test public void testAgent()
test_case.identifier: testAgent
test_case.invocations: setAgent assertFalse isAgentValid setAgent assertFalse isAgentValid setAgent assertTrue isAgentValid
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAgent()
focal_class.declarator: url
focal_class.modifier: @NotEmpty(message = "URL cannot be empty or null")
      private
focal_class.original_string: @NotEmpty(message = "URL cannot be empty or null")
      private String url;
focal_class.type: String
focal_class.var_name: url
focal_class.declarator: agent
focal_class.modifier: private
focal_class.original_string: private String agent;
focal_class.type: String
focal_class.var_name: agent
focal_class.file: checker/src/main/java/com/fooock/robotstxt/api/model/AllowData.java
focal_class.identifier: AllowData
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: AllowData.isAgentValid()
focal_class.full_signature: public boolean isAgentValid()
focal_class.identifier: isAgentValid
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAgentValid()
focal_method.body: public boolean isAgentValid() {
          return agent != null && !agent.isEmpty();
      }
focal_method.class_method_signature: AllowData.isAgentValid()
focal_method.full_signature: public boolean isAgentValid()
focal_method.identifier: isAgentValid
focal_method.invocations: isEmpty
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isAgentValid()