@@ -70,9 +70,9 @@ public void cleanUp() throws Exception {
70
70
71
71
@ Test
72
72
public void testFilePath () throws Exception {
73
- assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
74
- assertEquals ("warning " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
75
- testMarkers (1 );
73
+ assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
74
+ assertEquals ("ignore " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
75
+ testMarkers (0 );
76
76
try {
77
77
Bundle bundle = Platform .getBundle (JavaLanguageServerTestPlugin .PLUGIN_ID );
78
78
URL settingsUrl = bundle .getEntry ("/formatter/settings.prefs" );
@@ -83,17 +83,17 @@ public void testFilePath() throws Exception {
83
83
StandardProjectsManager .configureSettings (preferences );
84
84
assertTrue (preferences .getSettingsAsURI ().isAbsolute ());
85
85
JobHelpers .waitForJobsToComplete ();
86
- assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
87
- assertEquals ("ignore " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
88
- testMarkers (0 );
86
+ assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
87
+ assertEquals ("warning " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
88
+ testMarkers (1 );
89
89
} finally {
90
90
JavaCore .setOptions (options );
91
91
preferences .setSettingsUrl (null );
92
92
StandardProjectsManager .configureSettings (preferences );
93
93
}
94
- assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
94
+ assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
95
95
JobHelpers .waitForJobsToComplete ();
96
- testMarkers (1 );
96
+ testMarkers (0 );
97
97
}
98
98
99
99
private void testMarkers (int count ) throws JavaModelException , CoreException {
@@ -104,21 +104,21 @@ private void testMarkers(int count) throws JavaModelException, CoreException {
104
104
105
105
@ Test
106
106
public void testRelativeFilePath () throws Exception {
107
- assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
108
- assertEquals ("warning " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
107
+ assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
108
+ assertEquals ("ignore " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
109
109
try {
110
110
String settingsUrl = "../../formatter/settings.prefs" ;
111
111
preferences .setSettingsUrl (settingsUrl );
112
112
StandardProjectsManager .configureSettings (preferences );
113
113
assertTrue (preferences .getSettingsAsURI ().isAbsolute ());
114
- assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
115
- assertEquals ("ignore " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
114
+ assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
115
+ assertEquals ("warning " , javaProject .getOption (MISSING_SERIAL_VERSION , true ));
116
116
} finally {
117
117
JavaCore .setOptions (options );
118
118
preferences .setSettingsUrl (null );
119
119
StandardProjectsManager .configureSettings (preferences );
120
120
}
121
- assertEquals ("warning " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
121
+ assertEquals ("ignore " , JavaCore .getOption (MISSING_SERIAL_VERSION ));
122
122
}
123
123
124
124
}
0 commit comments