Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[rdf4j-dev] #773 fixed by checking not null insted of null

Hi Jeen,

New two Test hits following Test classes


​I implement that test to pass only RDFJSONHandlingTest that is the reason I used RDFParseException.Error in expected class.it is not wrok with other test classes

@Test(expected = RDFParseException.class)
public void testNullRdfHandlerReader() throws IOException {

getParser().parse(new InputStreamReader(new ByteArrayInputStream("".getBytes())) , "");

}
So I add try catch to handle IOException like this 

@Test
public void testNullRdfHandlerReader(){
try {
getParser().parse(new InputStreamReader(new ByteArrayInputStream("".getBytes())), "");
}catch (IOException e){
e.printStackTrace();
}
}
This one also not work.can you please tell me what is correct way to handle this IOException with out disturbing other Test classes.
Thank you!
regards,
Heshan

Back to the top