@Test public void testExternalURITriple() throws IOException, InterruptedException { Text t = new Text("<http://a.example.com/>\t<http://b.example.com/>\t<http://c.example.com/> ."); Mapper.Context c = mock(Mapper.Context.class); mapper.map(new LongWritable(75), t, c); verifyNoMoreInteractions(c); }
@Test public void testLiteralTriple() throws IOException, InterruptedException { Text t = new Text( "<http://a.example.com/>\t<http://b.example.com/>\t\"even on the darkest night\"@en ."); Mapper.Context c = mock(Mapper.Context.class); mapper.map(new LongWritable(75), t, c); verifyNoMoreInteractions(c); }
@Test public void testInternalURITriple() throws IOException, InterruptedException { Text t = new Text( "<http://a.example.com/>\t<http://b.example.com/>\t<http://rdf.basekb.com/ns/f00t> ."); Mapper.Context c = mock(Mapper.Context.class); mapper.map(new LongWritable(75), t, c); verify(c).write(new Text("<http://rdf.basekb.com/ns/f00t>"), new LongWritable(1)); verifyNoMoreInteractions(c); }