Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions example/servicedef/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,13 @@ under the License.
<description>Kicks off a testdef test-suite run asynchronously, scoped to the example
component only - see TestRunServices.runScopedTestSuite. Gated by the test.api.enabled
config flag and the TESTEXEC_ADMIN permission (checked inside the underlying service).
componentName is deliberately not an attribute here - the component is fixed, not
caller-suppliable. testMethodName optionally scopes the run to one
@Test/@ParameterizedTest method within the class testCaseName resolves to - requires
testCaseName, and only applies when it resolves to a jupiter-test-suite.</description>
Also gated by the per-component test.api.enabled.example override - same
SystemProperty-backed mechanism, defaults to enabled, lets this component's endpoint be
disabled independently of every other component's. componentName is deliberately not an
attribute here - the component is fixed, not caller-suppliable. testMethodName optionally
scopes the run to one @Test/@ParameterizedTest method within the class testCaseName
resolves to - requires testCaseName, and only applies when it resolves to a
jupiter-test-suite.</description>
<attribute name="suiteName" type="String" mode="IN" optional="false"/>
<attribute name="testCaseName" type="String" mode="IN" optional="true"/>
<attribute name="testMethodName" type="String" mode="IN" optional="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class ExampleJupiterTests implements JupiterTestHelper {
@Test
@Order(1)
void shouldCreateExample() {

GenericValue userLogin = delegator.findOne('UserLogin', [userLoginId: 'system'], false)

String exampleTypeId = testParams.exampleTypeId ?: 'CONTRIVED'
Expand All @@ -76,7 +75,6 @@ class ExampleJupiterTests implements JupiterTestHelper {
@Test
@Order(6)
void shouldUpdateExample() {

GenericValue userLogin = delegator.findOne('UserLogin', [userLoginId: 'system'], false)

String exampleTypeId = testParams.exampleTypeId ?: 'CONTRIVED'
Expand Down Expand Up @@ -140,7 +138,6 @@ class ExampleJupiterTests implements JupiterTestHelper {
@Test
@Order(3)
void shouldDeleteExample() {

GenericValue userLogin = delegator.findOne('UserLogin', [userLoginId: 'system'], false)

String exampleTypeId = testParams.exampleTypeId ?: 'CONTRIVED'
Expand Down