Skip to content

Commit 224112f

Browse files
Adam WisniewskiAdam Wisniewski
authored andcommitted
Update copyright
Signed-off-by: Adam Wisniewski <awisniew@Adams-MacBook-Pro.local>
1 parent 583e41b commit 224112f

File tree

6 files changed

+41
-6
lines changed

6 files changed

+41
-6
lines changed

releng/io.openliberty.tools.update/category.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</feature>
1818

1919
<category-def name="io.openliberty.tools.eclipse" label="Liberty Tools" />
20-
20+
2121
<repository-reference location="https://download.eclipse.org/lsp4mp/releases/0.7.0/repository" enabled="true" />
2222
<repository-reference location="https://download.eclipse.org/lsp4jakarta/releases/0.1.1/repository" enabled="true" />
2323

tests/pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<properties>
2727
<testAppImportWait>60000</testAppImportWait>
2828
</properties>
29-
29+
3030
<build>
3131
<plugins>
3232
<plugin>
@@ -100,6 +100,16 @@
100100
<id>org.eclipse.lsp4e.jdt</id>
101101
<versionRange>0.0.0</versionRange>
102102
</requirement>
103+
<requirement>
104+
<type>p2-installable-unit</type>
105+
<id>org.eclipse.lsp4jakarta.jdt.core</id>
106+
<versionRange>0.0.0</versionRange>
107+
</requirement>
108+
<requirement>
109+
<type>p2-installable-unit</type>
110+
<id>org.eclipse.jdt.ls.core</id>
111+
<versionRange>0.0.0</versionRange>
112+
</requirement>
103113
</extraRequirements>
104114
</dependency-resolution>
105115
</configuration>

tests/resources/applications/maven/liberty-maven-test-app/src/main/liberty/config/server.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-->
1414
<server description="Sample Servlet server">
1515
<featureManager>
16-
<feature>jakartaee-10.0</feature>
16+
<feature>jsp-3.1</feature>
1717
</featureManager>
1818

1919
<httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint" />

tests/resources/applications/maven/liberty-maven-test-wrapper-app/src/main/liberty/config/server.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-->
1414
<server description="Sample Servlet server">
1515
<featureManager>
16-
<feature>jakartaee-10.0</feature>
16+
<feature>jsp-3.1</feature>
1717
</featureManager>
1818

1919
<httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint" />

tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotLSP4JakartaTest.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2023 IBM Corporation and others.
2+
* Copyright (c) 2023 IBM Corporation and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -13,6 +13,7 @@
1313
package io.openliberty.tools.eclipse.test.it;
1414

1515
import static org.junit.jupiter.api.Assertions.assertTrue;
16+
import static org.junit.jupiter.api.Assertions.fail;
1617

1718
import java.io.File;
1819
import java.nio.file.Path;
@@ -74,9 +75,11 @@ public class LibertyPluginSWTBotLSP4JakartaTest extends AbstractLibertyPluginSWT
7475

7576
/**
7677
* Setup.
78+
*
79+
* @throws Exception
7780
*/
7881
@BeforeAll
79-
public static void setup() {
82+
public static void setup() throws Exception {
8083

8184
commonSetup();
8285

@@ -111,6 +114,7 @@ public void testClassLevelSnippets() {
111114

112115
// Get type-ahead list
113116
List<String> typeAheadOptions = SWTBotPluginOperations.getTypeAheadList(bot, "MyClass.java", "", 0, 0);
117+
System.out.println("INFO: Type-ahead options found = " + Arrays.toString(typeAheadOptions.toArray()));
114118

115119
boolean allFound = true;
116120
List<String> missingOptions = new ArrayList<String>();
@@ -123,10 +127,14 @@ public void testClassLevelSnippets() {
123127

124128
assertTrue(allFound, "Missing type-ahead options: " + Arrays.toString(missingOptions.toArray()));
125129

130+
} catch (Exception e) {
131+
fail("Unexpected exception was thrown: " + e);
126132
} finally {
127133

128134
// Delete new file
135+
System.out.println("INFO: Deleting MyClass.java file");
129136
LibertyPluginTestUtils.deleteFile(new File(wrapperProjectPath + "/src/main/java/test/maven/liberty/web/app/MyClass.java"));
137+
130138
}
131139
}
132140

@@ -142,6 +150,7 @@ public void testInClassSnippets() {
142150

143151
// Get type-ahead list
144152
List<String> typeAheadOptions = SWTBotPluginOperations.getTypeAheadList(bot, "MyClass.java", "", 3, 0);
153+
System.out.println("INFO: Type-ahead options found = " + Arrays.toString(typeAheadOptions.toArray()));
145154

146155
boolean allFound = true;
147156
List<String> missingOptions = new ArrayList<String>();
@@ -154,9 +163,12 @@ public void testInClassSnippets() {
154163

155164
assertTrue(allFound, "Missing type-ahead options: " + Arrays.toString(missingOptions.toArray()));
156165

166+
} catch (Exception e) {
167+
fail("Unexpected exception was thrown: " + e);
157168
} finally {
158169

159170
// Delete new file
171+
System.out.println("INFO: Deleting MyClass.java file");
160172
LibertyPluginTestUtils.deleteFile(new File(wrapperProjectPath + "/src/main/java/test/maven/liberty/web/app/MyClass.java"));
161173
}
162174
}
@@ -193,9 +205,12 @@ public void testDiagnosticsAndQuickFixes() {
193205

194206
assertTrue(allFound, "Missing quick-fixes: " + Arrays.toString(missingFixes.toArray()));
195207

208+
} catch (Exception e) {
209+
fail("Unexpected exception was thrown: " + e);
196210
} finally {
197211

198212
// Delete new file
213+
System.out.println("INFO: Deleting MyClass.java file");
199214
LibertyPluginTestUtils.deleteFile(new File(wrapperProjectPath + "/src/main/java/test/maven/liberty/web/app/MyClass.java"));
200215
}
201216
}

tests/src/main/java/io/openliberty/tools/eclipse/test/it/utils/SWTBotPluginOperations.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,8 @@ public boolean matches(Object object) {
934934
*/
935935
public static void createNewClass(SWTWorkbenchBot bot, String appName, String className, boolean clearContent) {
936936

937+
System.out.println("INFO: Creating new Java class: " + className);
938+
937939
Object project = getAppInPackageExplorerTree(appName);
938940
context(project, "New", "Class");
939941

@@ -967,6 +969,9 @@ public static void createNewClass(SWTWorkbenchBot bot, String appName, String cl
967969
*/
968970
public static List<String> getTypeAheadList(SWTWorkbenchBot bot, String editorFileName, String insertText, int cursorRow,
969971
int cursorColumn) {
972+
973+
System.out.println("INFO: Getting type-ahead list");
974+
970975
SWTBotPreferences.PLAYBACK_DELAY = 1000;
971976

972977
SWTBotEditor editor = searchForEditor(bot, editorFileName);
@@ -992,6 +997,9 @@ public static List<String> getTypeAheadList(SWTWorkbenchBot bot, String editorFi
992997
*/
993998
public static void selectTypeAheadOption(SWTWorkbenchBot bot, String editorFileName, String option, int cursorRow,
994999
int cursorColumn) {
1000+
1001+
System.out.println("INFO: Selecting type-ahead option: " + option);
1002+
9951003
SWTBotPreferences.PLAYBACK_DELAY = 1000;
9961004
SWTBotEditor editor = searchForEditor(bot, editorFileName);
9971005
SWTBotEclipseEditor e = editor.toTextEditor();
@@ -1009,6 +1017,8 @@ public static void selectTypeAheadOption(SWTWorkbenchBot bot, String editorFileN
10091017
* @return
10101018
*/
10111019
public static List<String> getQuickFixList(SWTWorkbenchBot bot, String editorFileName) {
1020+
System.out.println("INFO: Getting quick-fix list for class: " + editorFileName);
1021+
10121022
SWTBotPreferences.PLAYBACK_DELAY = 1000;
10131023

10141024
SWTBotEditor editor = searchForEditor(bot, editorFileName);

0 commit comments

Comments
 (0)