File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
java-native/src/test/java/com/baeldung/jvmbitversion Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 55import org .junit .Before ;
66import org .junit .Test ;
77
8- import com .baeldung .jvmbitversion .JVMBitVersion ;
98import com .sun .jna .Platform ;
109
1110public class JVMBitVersionUnitTest {
@@ -19,9 +18,9 @@ public void setup() {
1918
2019 @ Test
2120 public void whenUsingSystemClass_thenOutputIsAsExpected () {
22- if (System .getProperty ("sun.arch.data.model" ) == "64" ) {
21+ if ("64" . equals ( System .getProperty ("sun.arch.data.model" )) ) {
2322 assertEquals ("64-bit" , jvmVersion .getUsingSystemClass ());
24- } else if (System .getProperty ("sun.arch.data.model" ) == "32" ) {
23+ } else if ("32" . equals ( System .getProperty ("sun.arch.data.model" )) ) {
2524 assertEquals ("32-bit" , jvmVersion .getUsingSystemClass ());
2625 }
2726 }
You can’t perform that action at this time.
0 commit comments