Skip to content

Commit

Permalink
LayoutProcessor
Browse files Browse the repository at this point in the history
- enable() and disable() in same Test
  • Loading branch information
asturio committed Feb 20, 2024
1 parent 5749229 commit 059d066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
class LayoutProcessorTest {

@Test
void testEnable() {
void testEnableDisable() {
LayoutProcessor.enable();
assertTrue(LayoutProcessor.isEnabled());
}

@Test
void testDisable() {
LayoutProcessor.disable();
assertFalse(LayoutProcessor.isEnabled());
assertThat(LayoutProcessor.getFlags()).isEqualTo(-1);
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,13 @@
</filesets>
</configuration>
</plugin>
<!-- Set java to 9 -->
<!-- Set java to 17 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<release>${java.version}</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
</compilerArgs>
Expand Down

0 comments on commit 059d066

Please sign in to comment.