|
1 | 1 | package software.amazon.smithy.typescript.codegen;
|
2 | 2 |
|
3 |
| -import static org.hamcrest.MatcherAssert.assertThat; |
4 |
| -import static org.hamcrest.Matchers.containsString; |
5 |
| -import static org.hamcrest.Matchers.equalTo; |
6 |
| -import static org.junit.jupiter.api.Assertions.assertEquals; |
7 |
| -import static org.junit.jupiter.api.Assertions.assertTrue; |
8 |
| - |
9 | 3 | import org.junit.jupiter.api.Test;
|
10 | 4 | import org.junit.jupiter.params.ParameterizedTest;
|
11 | 5 | import org.junit.jupiter.params.provider.Arguments;
|
12 | 6 | import org.junit.jupiter.params.provider.MethodSource;
|
13 |
| -import software.amazon.smithy.build.MockManifest; |
14 | 7 | import software.amazon.smithy.model.Model;
|
15 | 8 | import software.amazon.smithy.model.node.Node;
|
16 | 9 | import software.amazon.smithy.model.node.ObjectNode;
|
17 | 10 | import software.amazon.smithy.model.shapes.ShapeId;
|
18 | 11 |
|
19 |
| -import java.util.HashMap; |
20 | 12 | import java.util.stream.Stream;
|
21 | 13 |
|
| 14 | +import static org.hamcrest.MatcherAssert.assertThat; |
| 15 | +import static org.hamcrest.Matchers.equalTo; |
| 16 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 17 | + |
22 | 18 | public class TypeScriptSettingsTest {
|
23 | 19 |
|
24 | 20 | @Test
|
@@ -81,7 +77,7 @@ void expectPackageDescriptionUpdatedByArtifactType(TypeScriptSettings.ArtifactTy
|
81 | 77 |
|
82 | 78 | final TypeScriptSettings typeScriptSettings = TypeScriptSettings.from(model, settings, artifactType);
|
83 | 79 |
|
84 |
| - assertThat(typeScriptSettings.getPackageDescription(), containsString(expectedDescription)); |
| 80 | + assertEquals(typeScriptSettings.getPackageDescription(), expectedDescription); |
85 | 81 | }
|
86 | 82 |
|
87 | 83 | private static Stream<Arguments> providePackageDescriptionTestCases() {
|
|
0 commit comments