Skip to content

Commit 306275a

Browse files
committed
Update documentation for ArtifactType
1 parent 3be52fc commit 306275a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ import org.slf4j.LoggerFactory;
441441

442442
import com.nordstrom.automation.junit.ArtifactType;
443443

444-
public class MyArtifactType implements ArtifactType {
444+
public class MyArtifactType extends ArtifactType {
445445

446-
private static final Path ARTIFACT_PATH = Paths.get("artifacts");
446+
private static final String ARTIFACT_PATH = "artifacts";
447447
private static final String EXTENSION = "txt";
448448
private static final String ARTIFACT = "This text artifact was captured for '%s'";
449449
private static final Logger LOGGER = LoggerFactory.getLogger(MyArtifactType.class);
@@ -465,7 +465,7 @@ public class MyArtifactType implements ArtifactType {
465465

466466
@Override
467467
public Path getArtifactPath() {
468-
return ARTIFACT_PATH;
468+
return super.getArtifactPath(instance).resolve(ARTIFACT_PATH);
469469
}
470470

471471
@Override

0 commit comments

Comments
 (0)