Skip to content

Commit

Permalink
DELTASPIKE-1191 Document duplications in gradle. Minor text clean up …
Browse files Browse the repository at this point in the history
…in test control as well.
johnament committed Aug 18, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bfcfea8 commit f8cf5ae
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions documentation/src/main/asciidoc/test-control.adoc
Original file line number Diff line number Diff line change
@@ -427,7 +427,7 @@ constructor) and specify the target-type via `@TypedMock`.

=== JSF (via MyFaces-Test)

add on of
add one of

* org.apache.deltaspike.testcontrol.impl.jsf.MockedJsf2TestContainer
* org.apache.deltaspike.testcontrol.impl.jsf.MockedJsfTestContainerAdapter
@@ -436,7 +436,7 @@ add on of

as content to

/META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer
`/META-INF/services/org.apache.deltaspike.testcontrol.spi.ExternalContainer`

(in your config-folder for tests, e.g. test/resources)

@@ -570,14 +570,18 @@ for resources to point to where the compiled code lives. This is an example of
----------------------------------------------------------------------------------------------------------
sourceSets {
main {
output.resourcesDir = 'build/classes/main'
output.classesDir = 'build/classes/main'
output.resourcesDir = output.classesDir
}
test {
output.resourcesDir = 'build/classes/test'
output.classesDir = 'build/classes/test'
output.resourcesDir = output.classesDir
}
}
// ensure you're excluding duplicates
jar {
duplicatesStrategy = 'exclude'
}
----------------------------------------------------------------------------------------------------------

== SPI

0 comments on commit f8cf5ae

Please sign in to comment.