protected void testDemandsMinimalType( Assembler a, Resource type ) { try { a.open( resourceInModel( "x rdf:type rdf:Resource" ) ); fail( "should trap insufficient type" ); } catch (CannotConstructException e) { assertEquals( getAssemblerClass(), e.getAssemblerClass() ); assertEquals( type, e.getType() ); assertEquals( resource( "x" ), e.getRoot() ); } }
protected void testDemandsMinimalType( Assembler a, Resource type ) { try { a.open( resourceInModel( "x rdf:type rdf:Resource" ) ); fail( "should trap insufficient type" ); } catch (CannotConstructException e) { assertEquals( getAssemblerClass(), e.getAssemblerClass() ); assertEquals( type, e.getType() ); assertEquals( resource( "x" ), e.getRoot() ); } }