/** Test of ac_issue_getAllForMethod method, of class MetadataRDFConverter. */ @Test public void testAc_issue_getAllForMethod() { System.out.println("* MetadataRDFConverterTest: ac_issue_getAllForMethod"); ArrayList<String> sMethodUriNull = null; // APIResponseData expResult = null; APIResponseData resultNull = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriNull); // assertEquals(expResult, resultNull); assertNotNull(resultNull); assertNotNull(resultNull.oData); assertEquals(resultNull.oData.size(), 0); ArrayList<String> sMethodUriString = new ArrayList<String>(); sMethodUriString.add(null); APIResponseData resultStringNull = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriString); // assertEquals(expResult, resultStringNull); assertNotNull(resultStringNull); assertNotNull(resultStringNull.oData); assertEquals(resultStringNull.oData.size(), 0); ArrayList<String> sMethodUriEmpty = new ArrayList<String>(); sMethodUriEmpty.add(""); APIResponseData resultStringEmpty = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriEmpty); // assertEquals(expResult, resultStringEmpty); assertNotNull(resultStringEmpty); assertNotNull(resultStringEmpty.oData); assertEquals(resultStringEmpty.oData.size(), 0); ArrayList<String> sMethodUri = new ArrayList<String>(); sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method1"); sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method2"); sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method3"); APIResponseData result = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUri); assertNotNull(result); assertNotNull(result.oData); assertEquals(result.oData.size() > 0, true); // assertEquals(expResult, result); //// TO-DO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }