From a803300431b3b6913cb41de6c0770ee7f0531f84 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 16 Jul 2010 11:00:04 +0000 Subject: [PATCH] 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 --- solr/build.xml | 2 +- .../solr/client/solrj/SolrExampleTests.java | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/solr/build.xml b/solr/build.xml index fc2a941a54f..fb5d68a3c98 100644 --- a/solr/build.xml +++ b/solr/build.xml @@ -384,7 +384,7 @@ - + diff --git a/solr/src/test/org/apache/solr/client/solrj/SolrExampleTests.java b/solr/src/test/org/apache/solr/client/solrj/SolrExampleTests.java index 56ff8f90628..88907f9f993 100644 --- a/solr/src/test/org/apache/solr/client/solrj/SolrExampleTests.java +++ b/solr/src/test/org/apache/solr/client/solrj/SolrExampleTests.java @@ -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() ); - - }