protected void compareTupleQueryResults( final TupleQueryResult queryResult, final TupleQueryResult expectedResult, final boolean checkOrder) throws QueryEvaluationException { AbstractQueryEngineTestCase.compareTupleQueryResults(getName(), "", store, astContainer, queryResult, expectedResult, false, checkOrder); }
static protected void assertSameAST(final IQueryNode expected, final IQueryNode actual) { if (!expected.equals(actual)) { log.error("expected: " + BOpUtility.toString((BOp) expected)); log.error("actual : " + BOpUtility.toString((BOp) actual)); AbstractQueryEngineTestCase.diff((BOp) expected, (BOp) actual); // No difference was detected? throw new AssertionError(); // fail("expected:\n" + BOpUtility.toString((BOp) expected) // + "\nactual:\n" + BOpUtility.toString((BOp) actual)); } else if(log.isInfoEnabled()) { log.info(BOpUtility.toString((BOp) expected)); } }
@Override public Properties getProperties() { final Properties p = new Properties(super.getProperties()); p.setProperty(Journal.Options.BUFFER_MODE, BufferMode.Transient .toString()); return p; }
fail("Expecting null, but have " + o2); fail("Expecting non-null, but have null: expected=" + o1); fail("Types differ: expecting " + o1.getClass() + ", but have " + o2.getClass() + " for " + o1.toShortString() + ", " + o2.toShortString() + "\n"); fail("Arity differs: expecting " + arity1 + ", but have " + arity2 + " for " + o1.toShortString() + ", " + o2.toShortString() + "\n"); diff(c1, c2); fail("Not expecting annotation for " + name + " : expecting=" + o1 + ", actual=" + o2); fail("Missing annotation @ \"" + name + "\" : expecting=" + o1 + ", actual=" + o2); diff((BOp) a1, (BOp) a2); fail("Annotations differ for " + name + " : expecting=" + o1 + ", actual=" + o2); fail("#of annotations differs: expecting " + o1 + ", actual=" + o2 + ", missing=" + expectedSet.toString()); fail("#of annotations differs: expecting=" + o1 + "\nactual="
log.info(n + " : " + e[i]); if (n >= expected.length) { fail("Willing to deliver too many solutions: n=" + n + " : " + e[i]); fail("n=" + n + ", expected=" + expected[n] + ", actual=" + e[i]); assertEquals("Wrong number of solutions", expected.length, n); } finally { itr.close();
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }
@Override protected void tearDown() throws Exception { if (store != null) { store.__tearDownUnitTest(); store = null; } context = null; valueFactory = null; baseURI = null; super.tearDown(); }
public void compareGraphs(final Set<Statement> queryResult, final Set<Statement> expectedResult) { AbstractQueryEngineTestCase.compareGraphs(getName(), queryResult, expectedResult); }
fail("Expecting null, but have " + o2); fail("Expecting non-null, but have null: expected=" + o1); fail("Types differ: expecting " + o1.getClass() + ", but have " + o2.getClass() + " for " + o1.toShortString() + ", " + o2.toShortString() + "\n"); fail("Arity differs: expecting " + arity1 + ", but have " + arity2 + " for " + o1.toShortString() + ", " + o2.toShortString() + "\n"); diff(c1, c2); fail("Not expecting annotation for " + name + " : expecting=" + o1 + ", actual=" + o2); fail("Missing annotation @ \"" + name + "\" : expecting=" + o1 + ", actual=" + o2); diff((BOp) a1, (BOp) a2); fail("Annotations differ for " + name + " : expecting=" + o1 + ", actual=" + o2); fail("#of annotations differs: expecting " + o1 + ", actual=" + o2 + ", missing=" + expectedSet.toString()); fail("#of annotations differs: expecting=" + o1 + "\nactual="
log.info(n + " : " + e[i]); if (n >= expected.length) { fail("Willing to deliver too many solutions: n=" + n + " : " + e[i]); fail("n=" + n + ", expected=" + expected[n] + ", actual=" + e[i]); assertEquals("Wrong number of solutions", expected.length, n); } finally { itr.close();
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }
@Override protected void tearDown() throws Exception { if (store != null) { store.__tearDownUnitTest(); store = null; } context = null; valueFactory = null; baseURI = null; super.tearDown(); }
public void compareGraphs(final Set<Statement> queryResult, final Set<Statement> expectedResult) { AbstractQueryEngineTestCase.compareGraphs(getName(), queryResult, expectedResult); }
protected void compareTupleQueryResults( final TupleQueryResult queryResult, final TupleQueryResult expectedResult, final boolean checkOrder) throws QueryEvaluationException { AbstractQueryEngineTestCase.compareTupleQueryResults(getName(), "", store, astContainer, queryResult, expectedResult, false, checkOrder); }
static protected void assertSameAST(final IQueryNode expected, final IQueryNode actual) { if (!expected.equals(actual)) { log.error("expected: " + BOpUtility.toString((BOp) expected)); log.error("actual : " + BOpUtility.toString((BOp) actual)); AbstractQueryEngineTestCase.diff((BOp) expected, (BOp) actual); // No difference was detected? throw new AssertionError(); // fail("expected:\n" + BOpUtility.toString((BOp) expected) // + "\nactual:\n" + BOpUtility.toString((BOp) actual)); } else if(log.isInfoEnabled()) { log.info(BOpUtility.toString((BOp) expected)); } }
@Override public Properties getProperties() { final Properties p = new Properties(super.getProperties()); p.setProperty(Journal.Options.BUFFER_MODE, BufferMode.Transient .toString()); return p; }
log.info(n + " : " + e[i]); if (n >= expected.length) { fail("Willing to deliver too many solutions: n=" + n + " : " + e[i]); fail("n=" + n + ", expected=" + expected[n] + ", actual=" + e[i]); assertEquals("Wrong number of solutions", expected.length, n); } catch (InterruptedException ex) { throw new RuntimeException("Query evaluation was interrupted: "
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }
@Override protected void tearDown() throws Exception { if (store != null) { store.__tearDownUnitTest(); store = null; } context = null; valueFactory = null; baseURI = null; super.tearDown(); }
public void compareGraphs(final Set<Statement> queryResult, final Set<Statement> expectedResult) { AbstractQueryEngineTestCase.compareGraphs(getName(), queryResult, expectedResult); }