diff --git a/src/test/java/net/masterthought/cucumber/json/EmbeddingWithNameTest.java b/src/test/java/net/masterthought/cucumber/json/EmbeddingWithNameTest.java index 0c37af6be..2fc21baad 100644 --- a/src/test/java/net/masterthought/cucumber/json/EmbeddingWithNameTest.java +++ b/src/test/java/net/masterthought/cucumber/json/EmbeddingWithNameTest.java @@ -37,6 +37,7 @@ public static Iterable data() { @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getMimeType_ReturnsMimeType(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + // given Embedding embedding = new Embedding(this.mimeType, this.data, this.name); @@ -51,6 +52,7 @@ void getMimeType_ReturnsMimeType(String mimeType, String data, String name, Stri @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getData_ReturnsContent(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + // given Embedding embedding = new Embedding(this.mimeType, this.data, this.name); @@ -65,8 +67,10 @@ void getData_ReturnsContent(String mimeType, String data, String name, String de @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getDecodedData_ReturnsDecodedContent(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + + // This assumeThat will cause 6 tests to be skipped from our 'data' usage assumeThat(this.decodedData).isNotEqualTo(NO_DECODING); - + // given Embedding embedding = new Embedding(this.mimeType, this.data, this.name); @@ -81,6 +85,8 @@ void getDecodedData_ReturnsDecodedContent(String mimeType, String data, String n @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getFileName_ReturnsFileName(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + + // This assumeThat will cause 6 tests to be skipped from our 'data' usage assumeThat(this.fileName).matches("^[^\\.]+\\.[^\\.]+$"); // given @@ -97,6 +103,7 @@ void getFileName_ReturnsFileName(String mimeType, String data, String name, Stri @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getExtension_ReturnsFileExtension(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + // given Embedding embedding = new Embedding(this.mimeType, this.data, this.name); @@ -111,6 +118,7 @@ void getExtension_ReturnsFileExtension(String mimeType, String data, String name @ParameterizedTest(name = "\"{0}\" into \"{2}\"") void getName_ReturnsName(String mimeType, String data, String name, String decodedData, String fileName) { initEmbeddingWithNameTest(mimeType, data, name, decodedData, fileName); + // given Embedding embedding = new Embedding(this.mimeType, this.data, this.name);