kazurayam / materialstore

A domain-specific file system to store "materials" (screenshots, HTML, JSON, XML) collected during End-to-End testings using Selenium WebDriver etc. Features to make "diff" and compiling HTML reports are also included. This is written in pure Java8
Apache License 2.0
0 stars 0 forks source link

add 3 methods to `Metadata` class: `containsCategoryDiff()`, `getMaterialLocatorLeft()`, `getMaterialLocatorRight()` #355

Closed kazurayam closed 1 year ago

kazurayam commented 1 year ago

At https://github.com/kazurayam/inspectus/blob/0.5.3/core/src/test/java/com/kazurayam/inspectus/fn/FnChronosDiffTest.java , I want to write a code as follows:

        JobTimestamp jtLatest = store.findLatestJobTimestamp(jobName);
        MaterialList ml = store.select(jobName, jtLatest);
        ml.forEach ( material -> {
            assertTrue(material.getMetadata().containsCategoryDiff());
            assertEquals(jt1, material.getMetadata().getMaterialLocatorLeft().getJobTimestamp());
            assertEquals(jt3, material.getMetadata().getMaterialLocatorRight().getJobTimestamp());
        });

So, I need to extend the com.kazurayam.materialstore.core.filesystem.metadata.Metadata class. It should implement:

kazurayam commented 1 year ago

done at 0.12.3-SNAPSHOT