Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit f37aaea

Browse files
committed
Fix test
1 parent 7e38164 commit f37aaea

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/test/java/com/epam/reportportal/cucumber/EmbeddingTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ public class EmbeddingTest {
5454
@CucumberOptions(features = "src/test/resources/features/embedding/ImageEmbeddingFeature.feature", glue = {
5555
"com.epam.reportportal.cucumber.integration.embed.image" }, plugin = { "pretty",
5656
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
57-
public static class ImageStepReporter extends AbstractTestNGCucumberTests {
57+
public static class ImageStepReporterTest extends AbstractTestNGCucumberTests {
5858

5959
}
6060

6161
@CucumberOptions(features = "src/test/resources/features/embedding/TextEmbeddingFeature.feature", glue = {
6262
"com.epam.reportportal.cucumber.integration.embed.text" }, plugin = { "pretty",
6363
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
64-
public static class TextStepReporter extends AbstractTestNGCucumberTests {
64+
public static class TextStepReporterTest extends AbstractTestNGCucumberTests {
6565

6666
}
6767

6868
@CucumberOptions(features = "src/test/resources/features/embedding/PdfEmbeddingFeature.feature", glue = {
6969
"com.epam.reportportal.cucumber.integration.embed.pdf" }, plugin = { "pretty",
7070
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
71-
public static class PdfStepReporter extends AbstractTestNGCucumberTests {
71+
public static class PdfStepReporterTest extends AbstractTestNGCucumberTests {
7272

7373
}
7474

7575
@CucumberOptions(features = "src/test/resources/features/embedding/ArchiveEmbeddingFeature.feature", glue = {
7676
"com.epam.reportportal.cucumber.integration.embed.zip" }, plugin = { "pretty",
7777
"com.epam.reportportal.cucumber.integration.TestStepReporter" })
78-
public static class ZipStepReporter extends AbstractTestNGCucumberTests {
78+
public static class ZipStepReporterTest extends AbstractTestNGCucumberTests {
7979

8080
}
8181

@@ -118,7 +118,7 @@ public void setup() {
118118

119119
@Test
120120
public void verify_image_embedding() {
121-
TestUtils.runTests(ImageStepReporter.class);
121+
TestUtils.runTests(ImageStepReporterTest.class);
122122

123123
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
124124
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -132,7 +132,7 @@ public void verify_image_embedding() {
132132

133133
@Test
134134
public void verify_text_embedding() {
135-
TestUtils.runTests(TextStepReporter.class);
135+
TestUtils.runTests(TextStepReporterTest.class);
136136

137137
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
138138
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -145,8 +145,8 @@ public void verify_text_embedding() {
145145
}
146146

147147
@Test
148-
public void verify_pfd_embedding() {
149-
TestUtils.runTests(PdfStepReporter.class);
148+
public void verify_pdf_embedding() {
149+
TestUtils.runTests(PdfStepReporterTest.class);
150150

151151
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
152152
verify(client, atLeastOnce()).log(logCaptor.capture());
@@ -155,19 +155,19 @@ public void verify_pfd_embedding() {
155155
List<String> types = getTypes(logCaptor, logs);
156156

157157
assertThat(types, hasSize(3));
158-
assertThat(types, containsInAnyOrder("application/pdf", "image/png", "application/octet-stream"));
158+
assertThat(types, containsInAnyOrder("application/pdf", "image/png", "application/pdf"));
159159
}
160160

161161
@Test
162162
public void verify_archive_embedding() {
163-
TestUtils.runTests(ZipStepReporter.class);
163+
TestUtils.runTests(ZipStepReporterTest.class);
164164

165165
ArgumentCaptor<List<MultipartBody.Part>> logCaptor = ArgumentCaptor.forClass(List.class);
166166
verify(client, atLeastOnce()).log(logCaptor.capture());
167167
List<SaveLogRQ> logs = filterLogs(logCaptor, l -> Objects.nonNull(l.getFile()));
168168

169169
List<String> types = getTypes(logCaptor, logs);
170170
assertThat(types, hasSize(3));
171-
assertThat(types, containsInAnyOrder("application/zip", "image/png", "application/octet-stream"));
171+
assertThat(types, containsInAnyOrder("application/zip", "image/png", "application/zip"));
172172
}
173173
}

0 commit comments

Comments
 (0)