Registry / testing / solr-test-framework

solr-test-framework

JSON →
library10.0.0javamavenunverified

Apache Solr (module: test-framework)

<dependency> <groupId>org.apache.solr</groupId> <artifactId>solr-test-framework</artifactId> <version>10.0.0</version> </dependency>
INSTALL
IMPORT
SIG · SOLR-TEST-FRAMEWOR
S
solr-test-framework
testingjavav10.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SolrTestCaseJ4
✓ org.apache.solr.SolrTestCaseJ4

Write a Solr test case using SolrTestCaseJ4.

import org.apache.solr.SolrTestCaseJ4; import org.junit.Test; public class ExampleTest extends SolrTestCaseJ4 { @Test public void testBasic() throws Exception { assertU(adoc("id", "1", "name", "test")); assertU(commit()); assertQ(req("id:1"), "//result[@numFound=1]"); } }
Debug
Known issues
gotchaSolr test framework requires a running Solr instance or embedded server setup; not standalone.
fix
Use SolrTestCaseJ4 which sets up an embedded Solr server automatically.
affects: all
Upgrade
Version history
10.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
solr-test-framework — mvn dependency:get solr-test-framework · libregistry