Skip to content

Commit f5264df

Browse files
authored
Document new utility methods, update version refs
1 parent 64fb946 commit f5264df

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Get the test class associated with the specified framework method.
3030
Get the test class object associated with the specified parent runner.
3131
* `LifecycleHooks.getAtomicTestOf(Object runner)`
3232
Get the atomic test object for the specified class runner.
33+
* `LifecycleHooks.getCallableOf(Object runner, Object child)`
34+
Get the _callable_ object associated with the specified parent runner and child runner or framework method.
3335

3436
###### Exploring the Test Run Hierarchy
3537
```java
@@ -109,6 +111,8 @@ Get a `Description` for the indicated child object from the runner for the speci
109111
Get class of specified test class instance.
110112
* `LifecycleHooks.getFieldValue(Object target, String name)`
111113
Get the value of the specified field from the supplied object.
114+
* `LifecycleHooks.encloseCallable(Method method, Object target, Object... params)`
115+
Synthesize a _callable_ object with the specified parameters.
112116

113117
### How to Enable Notifications
114118

@@ -132,7 +136,7 @@ The hooks that enable **JUnit Foundation** test lifecycle notifications are inst
132136
<dependency>
133137
<groupId>com.nordstrom.tools</groupId>
134138
<artifactId>junit-foundation</artifactId>
135-
<version>11.3.0</version>
139+
<version>12.1.0</version>
136140
<scope>test</scope>
137141
</dependency>
138142
</dependencies>
@@ -209,7 +213,7 @@ repositories {
209213
}
210214
dependencies {
211215
...
212-
compile 'com.nordstrom.tools:junit-foundation:11.3.0'
216+
compile 'com.nordstrom.tools:junit-foundation:12.1.0'
213217
}
214218
ext {
215219
junitFoundation = configurations.compile.resolvedConfiguration.resolvedArtifacts.find { it.name == 'junit-foundation' }
@@ -369,10 +373,6 @@ import org.junit.runner.RunWith;
369373
import org.junit.runners.Parameterized;
370374
import org.junit.runners.Parameterized.Parameters;
371375

372-
import com.nordstrom.automation.junit.ArtifactParams;
373-
import com.nordstrom.automation.junit.AtomIdentity;
374-
375-
376376
import com.nordstrom.automation.junit.ArtifactParams;
377377
import com.nordstrom.automation.junit.AtomIdentity;
378378

@@ -393,6 +393,11 @@ public class ExampleTest implements ArtifactParams {
393393
return new Object[] { "first test", "second test" };
394394
}
395395

396+
@Override
397+
public AtomIdentity getAtomIdentity() {
398+
return identity;
399+
}
400+
396401
@Override
397402
public Description getDescription() {
398403
return identity.getDescription();

0 commit comments

Comments
 (0)