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:
Robert Muir 2010-07-16 11:00:04 +00:00
parent dba59cd60c
commit a803300431
2 changed files with 1 additions and 17 deletions

View File

@ -384,7 +384,7 @@
</or> </or>
</condition> </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"> <target name="junit-sequential" if="runsequential">
<junit-macro/> <junit-macro/>

View File

@ -271,22 +271,6 @@ abstract public class SolrExampleTests extends SolrJettyTestBase
assertNotNull("Couldn't upload books.csv", result); assertNotNull("Couldn't upload books.csv", result);
rsp = server.query( new SolrQuery( "*:*") ); rsp = server.query( new SolrQuery( "*:*") );
Assert.assertEquals( 10, rsp.getResults().getNumFound() ); 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() );
} }