Skip to content

Commit c8b379b

Browse files
committed
Repair and execute disabled SWT tests
1 parent 359cb35 commit c8b379b

File tree

7 files changed

+5
-24
lines changed

7 files changed

+5
-24
lines changed

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/layouts/AbsoluteLayoutSelectionActionsTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2011 Google, Inc.
2+
* Copyright (c) 2011, 2025 Google, Inc. and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -23,7 +23,6 @@
2323
import org.eclipse.wb.tests.designer.core.model.TestObjectInfo;
2424
import org.eclipse.wb.tests.designer.rcp.RcpModelTest;
2525

26-
import org.junit.jupiter.api.Disabled;
2726
import org.junit.jupiter.api.Test;
2827

2928
import java.util.ArrayList;
@@ -1043,7 +1042,6 @@ public void test_align_space_equally_2() throws Exception {
10431042
// Center in window
10441043
//
10451044
////////////////////////////////////////////////////////////////////////////
1046-
@Disabled
10471045
@Test
10481046
public void test_align_center_in_window() throws Exception {
10491047
CompositeInfo shell =

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/menu/MenuItemTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2011, 2023 Google, Inc.
2+
* Copyright (c) 2011, 2025 Google, Inc. and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -32,7 +32,6 @@
3232
import static org.mockito.Mockito.verify;
3333
import static org.mockito.Mockito.verifyNoMoreInteractions;
3434

35-
import org.junit.jupiter.api.Disabled;
3635
import org.junit.jupiter.api.Test;
3736
import org.mockito.ArgumentMatchers;
3837

@@ -487,7 +486,6 @@ public void test_setStyle_fromCascade_toSeparator() throws Exception {
487486
/**
488487
* Test adding a selection listener to menu item.
489488
*/
490-
@Disabled
491489
@Test
492490
public void test_addSelectionListener() throws Exception {
493491
CompositeInfo shell =

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/property/ImagePropertyEditorTestNoManager.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2011, 2023 Google, Inc.
2+
* Copyright (c) 2011, 2025 Google, Inc. and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -22,7 +22,6 @@
2222

2323
import org.apache.commons.io.FilenameUtils;
2424
import org.junit.jupiter.api.BeforeEach;
25-
import org.junit.jupiter.api.Disabled;
2625
import org.junit.jupiter.api.Test;
2726

2827
import java.io.File;
@@ -97,7 +96,6 @@ public void test_textSource_absolutePath() throws Exception {
9796
/**
9897
* Image creation using constructor with input stream (over class resource).
9998
*/
100-
@Disabled
10199
@Test
102100
public void test_textSource_image_over_classpath() throws Exception {
103101
assert_getText_getClipboardSource_forSource(
@@ -109,7 +107,6 @@ public void test_textSource_image_over_classpath() throws Exception {
109107
/**
110108
* Image creation using constructor with input stream (over class resource).
111109
*/
112-
@Disabled
113110
@Test
114111
public void test_textSource_image_over_classpath_OtherClass() throws Exception {
115112
assert_getText_getClipboardSource_forSource(

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/property/ImagePropertyEditorTestWithManager.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2011, 2023 Google, Inc.
2+
* Copyright (c) 2011, 2025 Google, Inc. and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -26,7 +26,6 @@
2626

2727
import org.apache.commons.io.FilenameUtils;
2828
import org.junit.jupiter.api.BeforeEach;
29-
import org.junit.jupiter.api.Disabled;
3029
import org.junit.jupiter.api.Test;
3130

3231
import java.io.File;
@@ -103,7 +102,6 @@ public void test_textSource_absolutePath() throws Exception {
103102
/**
104103
* Image creation using constructor with input stream (over class resource).
105104
*/
106-
@Disabled
107105
@Test
108106
public void test_textSource_image_over_classpath() throws Exception {
109107
assert_getText_getClipboardSource_forSource(
@@ -115,7 +113,6 @@ public void test_textSource_image_over_classpath() throws Exception {
115113
/**
116114
* Image creation using constructor with input stream (over class resource).
117115
*/
118-
@Disabled
119116
@Test
120117
public void test_textSource_image_over_classpath_OtherClass() throws Exception {
121118
assert_getText_getClipboardSource_forSource(

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/property/SWTResourceManagerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import org.junit.jupiter.api.AfterEach;
2525
import org.junit.jupiter.api.BeforeEach;
26-
import org.junit.jupiter.api.Disabled;
2726
import org.junit.jupiter.api.Test;
2827

2928
import java.io.File;
@@ -212,7 +211,6 @@ public void test_getImage_absolute() throws Exception {
212211
}
213212
}
214213

215-
@Disabled
216214
@Test
217215
public void test_getImage_classpath() throws Exception {
218216
// create image over SWTResourceManager

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/model/widgets/TableTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.eclipse.swt.widgets.TableColumn;
3333
import org.eclipse.swt.widgets.TableItem;
3434

35-
import org.junit.jupiter.api.Disabled;
3635
import org.junit.jupiter.api.Test;
3736

3837
import java.util.List;
@@ -186,8 +185,6 @@ public void test_add_TableItem() throws Exception {
186185
* In SWT Cocoa and Linux GTK, the column headers are excluded from the client
187186
* area, hence why we have to adjust them for the tests.
188187
*/
189-
// Disabled because of https://github.com/eclipse-windowbuilder/windowbuilder/issues/389
190-
@Disabled
191188
@Test
192189
public void test_TableColumn() throws Exception {
193190
CompositeInfo shell =

org.eclipse.wb.tests/src/org/eclipse/wb/tests/designer/swt/support/CoordinateUtilsTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2011, 2024 Google, Inc. and others.
2+
* Copyright (c) 2011, 2025 Google, Inc. and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License 2.0 which is available at
@@ -28,7 +28,6 @@
2828
import org.eclipse.swt.widgets.Shell;
2929

3030
import org.assertj.core.api.Assertions;
31-
import org.junit.jupiter.api.Disabled;
3231
import org.junit.jupiter.api.Test;
3332

3433
/**
@@ -51,8 +50,6 @@ public void _test_exit() throws Exception {
5150
// Tests
5251
//
5352
////////////////////////////////////////////////////////////////////////////
54-
// Disabled because of https://github.com/eclipse-windowbuilder/windowbuilder/issues/389
55-
@Disabled
5653
@Test
5754
public void test_1() throws Exception {
5855
ShellInfo shell = (ShellInfo) parseComposite(
@@ -100,7 +97,6 @@ public void test_1() throws Exception {
10097
/**
10198
* Test for {@link CoordinateUtils#getClientAreaInsets2(Object)} for {@link Group}.
10299
*/
103-
@Disabled
104100
@Test
105101
public void test_withGroup() throws Exception {
106102
CompositeInfo shell =

0 commit comments

Comments
 (0)