@@ -95,12 +95,12 @@ public void testTextEditorClose() throws Exception {
95
95
public void testTextEditorCloseOneOfTwo () throws Exception {
96
96
IFile file1 = createTestFile ("Test1" );
97
97
IEditorPart editor1 = EditorUtility .openInEditor (file1 );
98
- assertEquals (editor1 .getClass (), TextEditor . class );
98
+ assertEquals (TextEditor . class , editor1 .getClass ());
99
99
assertInstanceCount (TextEditor .class , 1 );
100
100
101
101
IFile file2 = createTestFile ("Test2" );
102
102
IEditorPart editor2 = EditorUtility .openInEditor (file2 );
103
- assertEquals (editor2 .getClass (), TextEditor . class );
103
+ assertEquals (TextEditor . class , editor2 .getClass ());
104
104
assertInstanceCount (TextEditor .class , 2 );
105
105
106
106
assertTrue ("Could not close editor" , JavaPlugin .getActivePage ().closeEditor (editor2 , false ));
@@ -130,12 +130,12 @@ public void testPropertiesEditorClose() throws Exception {
130
130
public void testPropertiesEditorCloseOneOfTwo () throws Exception {
131
131
IFile file1 = createTestFile ("Test1.properties" );
132
132
IEditorPart editor1 = EditorUtility .openInEditor (file1 );
133
- assertEquals (editor1 .getClass (), PropertiesFileEditor . class );
133
+ assertEquals (PropertiesFileEditor . class , editor1 .getClass ());
134
134
assertInstanceCount (PropertiesFileEditor .class , 1 );
135
135
136
136
IFile file2 = createTestFile ("Test2.properties" );
137
137
IEditorPart editor2 = EditorUtility .openInEditor (file2 );
138
- assertEquals (editor2 .getClass (), PropertiesFileEditor . class );
138
+ assertEquals (PropertiesFileEditor . class , editor2 .getClass ());
139
139
assertInstanceCount (PropertiesFileEditor .class , 2 );
140
140
141
141
assertTrue ("Could not close editor" , JavaPlugin .getActivePage ().closeEditor (editor2 , false ));
@@ -165,12 +165,12 @@ public void testJavaEditorClose() throws Exception {
165
165
public void testJavaEditorCloseOneOfTwo () throws Exception {
166
166
ICompilationUnit cu1 = createTestCU ("Test1" );
167
167
IEditorPart editor1 = EditorUtility .openInEditor (cu1 );
168
- assertEquals (editor1 .getClass (), CompilationUnitEditor . class );
168
+ assertEquals (CompilationUnitEditor . class , editor1 .getClass ());
169
169
assertInstanceCount (CompilationUnitEditor .class , 1 );
170
170
171
171
ICompilationUnit cu2 = createTestCU ("Test2" );
172
172
IEditorPart editor2 = EditorUtility .openInEditor (cu2 );
173
- assertEquals (editor2 .getClass (), CompilationUnitEditor . class );
173
+ assertEquals (CompilationUnitEditor . class , editor2 .getClass ());
174
174
assertInstanceCount (CompilationUnitEditor .class , 2 );
175
175
176
176
assertTrue ("Could not close editor" , JavaPlugin .getActivePage ().closeEditor (editor2 , false ));
@@ -218,13 +218,13 @@ public void testJavaEditorBreadcrumbCloseOneOfTwo1() throws Exception {
218
218
JavaPlugin .getDefault ().getPreferenceStore ().setValue (getBreadcrumbPreferenceKey (), true );
219
219
ICompilationUnit cu1 = createTestCU ("Test1" );
220
220
IEditorPart editor1 = EditorUtility .openInEditor (cu1 );
221
- assertEquals (editor1 .getClass (), CompilationUnitEditor . class );
221
+ assertEquals (CompilationUnitEditor . class , editor1 .getClass ());
222
222
activateBreadcrumb ((JavaEditor ) editor1 );
223
223
assertInstanceCount (CompilationUnitEditor .class , 1 );
224
224
225
225
ICompilationUnit cu2 = createTestCU ("Test2" );
226
226
IEditorPart editor2 = EditorUtility .openInEditor (cu2 );
227
- assertEquals (editor2 .getClass (), CompilationUnitEditor . class );
227
+ assertEquals (CompilationUnitEditor . class , editor2 .getClass ());
228
228
activateBreadcrumb ((JavaEditor ) editor2 );
229
229
assertInstanceCount (CompilationUnitEditor .class , 2 );
230
230
@@ -248,12 +248,12 @@ public void testJavaEditorBreadcrumbCloseOneOfTwo2() throws Exception {
248
248
JavaPlugin .getDefault ().getPreferenceStore ().setValue (getBreadcrumbPreferenceKey (), true );
249
249
ICompilationUnit cu1 = createTestCU ("Test1" );
250
250
IEditorPart editor1 = EditorUtility .openInEditor (cu1 );
251
- assertEquals (editor1 .getClass (), CompilationUnitEditor . class );
251
+ assertEquals (CompilationUnitEditor . class , editor1 .getClass ());
252
252
assertInstanceCount (CompilationUnitEditor .class , 1 );
253
253
254
254
ICompilationUnit cu2 = createTestCU ("Test2" );
255
255
IEditorPart editor2 = EditorUtility .openInEditor (cu2 );
256
- assertEquals (editor2 .getClass (), CompilationUnitEditor . class );
256
+ assertEquals (CompilationUnitEditor . class , editor2 .getClass ());
257
257
activateBreadcrumb ((JavaEditor ) editor2 );
258
258
assertInstanceCount (CompilationUnitEditor .class , 2 );
259
259
@@ -381,7 +381,7 @@ private IEditorPart internalTestEditorOpen(Object objectToOpen, final Class<?> c
381
381
IEditorPart part = EditorUtility .openInEditor (objectToOpen );
382
382
383
383
// make sure the received instance has the type we're expecting
384
- assertEquals (part .getClass (), clazz );
384
+ assertEquals (clazz , part .getClass ());
385
385
386
386
// verify that the editor instance is there
387
387
assertInstanceCount (clazz , 1 );
0 commit comments