mirror of https://github.com/apache/lucene.git
remove dependency of test-core on build-contrib (only needed by redundant test code)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@964753 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dba59cd60c
commit
a803300431
|
@ -384,7 +384,7 @@
|
|||
</or>
|
||||
</condition>
|
||||
|
||||
<target name="junit" depends="compileTests,dist-contrib,junit-mkdir,junit-sequential,junit-parallel"/>
|
||||
<target name="junit" depends="compileTests,junit-mkdir,junit-sequential,junit-parallel"/>
|
||||
|
||||
<target name="junit-sequential" if="runsequential">
|
||||
<junit-macro/>
|
||||
|
|
|
@ -271,22 +271,6 @@ abstract public class SolrExampleTests extends SolrJettyTestBase
|
|||
assertNotNull("Couldn't upload books.csv", result);
|
||||
rsp = server.query( new SolrQuery( "*:*") );
|
||||
Assert.assertEquals( 10, rsp.getResults().getNumFound() );
|
||||
|
||||
server.deleteByQuery( "*:*" );// delete everything!
|
||||
server.commit();
|
||||
rsp = server.query( new SolrQuery( "*:*") );
|
||||
Assert.assertEquals( 0, rsp.getResults().getNumFound() );
|
||||
|
||||
up = new ContentStreamUpdateRequest("/update/extract");
|
||||
up.addFile(new File("mailing_lists.pdf"));
|
||||
up.setParam("literal.id", "mailing_lists.pdf");
|
||||
up.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
|
||||
result = server.request(up);
|
||||
assertNotNull("Couldn't upload mailing_lists.pdf", result);
|
||||
rsp = server.query( new SolrQuery( "*:*") );
|
||||
Assert.assertEquals( 1, rsp.getResults().getNumFound() );
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue