Skip to content

Commit 490b72f

Browse files
committed
Swap arguments so they are in the correct order: expected, actual
1 parent 513f8a1 commit 490b72f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/org/glassfish/logging/annotation/LogMessagesResourceBundleGeneratorTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
3+
* Copyright (c) 2025 Contributors to the Eclipse Foundation. All rights reserved.
34
*
45
* This program and the accompanying materials are made available under the
56
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -99,7 +100,7 @@ public void testNonStandardResourceBundleName() {
99100
String output = executeCompiler(f1);
100101
assertTrue(output.contains("annotated by @LogMessagesResourceBundle does not end with 'LogMessages'"));
101102
File[] resourceBundles = getResourceBundles();
102-
assertEquals(resourceBundles.length,0);
103+
assertEquals(0, resourceBundles.length);
103104
}
104105

105106
@Test
@@ -109,7 +110,7 @@ public void testNonUniqueResourceBundleName() {
109110
String output = executeCompiler(f1, f2);
110111
assertTrue(output.contains("More than one resource bundle name specified."));
111112
File[] resourceBundles = getResourceBundles();
112-
assertEquals(resourceBundles.length,0);
113+
assertEquals(0, resourceBundles.length);
113114
}
114115

115116
@Test
@@ -118,7 +119,7 @@ public void testNoResourceBundleName() {
118119
String output = executeCompiler(f1);
119120
assertTrue(output.contains("Annotation processing finished successfully."));
120121
File[] resourceBundles = getResourceBundles();
121-
assertEquals(resourceBundles.length,2);
122+
assertEquals(2, resourceBundles.length);
122123
}
123124

124125
@Test

0 commit comments

Comments
 (0)