File tree Expand file tree Collapse file tree 2 files changed +268
-330
lines changed
java-generator/core/src/test/java/io/fabric8/java/generator Expand file tree Collapse file tree 2 files changed +268
-330
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,13 @@ void testCalicoIPPoolCRDDoesNotCompileWhenDuplicatesAreNotDeprecated() throws Ex
119
119
config = config .toBuilder ()
120
120
.objectExtraAnnotations (true )
121
121
.build ();
122
+ final var fileJavaGenerator = new FileJavaGenerator (config , crd );
122
123
123
124
// Assert
124
- assertThatThrownBy (() -> {
125
- // Act
126
- new FileJavaGenerator (config , crd ).run (tempDir );
127
- javac ().compile (getSources (tempDir ));
128
- }).as ("The current CRD should not compile since it contains duplicate fields which are not marked as deprecated" )
125
+ assertThatThrownBy (
126
+ // Act
127
+ () -> fileJavaGenerator .run (tempDir ))
128
+ .as ("The current CRD should not compile since it contains duplicate fields which are not marked as deprecated" )
129
129
.isInstanceOf (JavaGeneratorException .class );
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments