You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2020/01/20 15:41:40 UTC
[netbeans] branch master updated: [TRAVIS] Test apisupport modules
This is an automated email from the ASF dual-hosted git repository.
skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 069f646 [TRAVIS] Test apisupport modules
new 5bf5494 Merge pull request #1862 from blackleg/apisupport
069f646 is described below
commit 069f6460252cf1d8cedf024df5fb22c49a073a4d
Author: Hector Espert <he...@gmail.com>
AuthorDate: Sun Jan 12 18:38:59 2020 +0100
[TRAVIS] Test apisupport modules
---
.travis.yml | 15 ++++++++
.../modules/apisupport/hints/HelpCtxHintTest.java | 43 +++++++++++++---------
apisupport/timers/nbproject/project.properties | 5 ++-
.../modules/timers/TimesCollectorPeerTest.java | 2 -
4 files changed, 44 insertions(+), 21 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 53098d3..c3c8b7a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -370,6 +370,21 @@ matrix:
- ant $OPTS build
script:
- ant $OPTS -f java/java.completion test
+
+ - name: Test apisupport modules
+ jdk: openjdk8
+ env:
+ - OPTS="-quiet -Dcluster.config=release -Djavac.compilerargs=-nowarn -Dbuild.compiler.deprecation=false"
+ before_script:
+ - ant $OPTS clean
+ - ant $OPTS build
+ script:
+ #- ant $OPTS -f apisupport/apisupport.ant test
+ - ant $OPTS -f apisupport/apisupport.project test
+ - ant $OPTS -f apisupport/apisupport.refactoring test
+ - ant $OPTS -f apisupport/apisupport.wizards test
+ - ant $OPTS -f apisupport/maven.apisupport test
+ - ant $OPTS -f apisupport/timers test -Dtest.config=stable
- name: Test ergonomics modules
jdk: openjdk8
diff --git a/apisupport/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/HelpCtxHintTest.java b/apisupport/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/HelpCtxHintTest.java
index 6cc189a..fe4503d 100644
--- a/apisupport/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/HelpCtxHintTest.java
+++ b/apisupport/apisupport.refactoring/test/unit/src/org/netbeans/modules/apisupport/hints/HelpCtxHintTest.java
@@ -29,42 +29,46 @@ import org.openide.util.HelpCtx;
public class HelpCtxHintTest {
- @Test public void literalString() throws Exception {
+ @Test
+ public void literalString() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"some.id\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"some.id\");\n" +
"}\n").
run(HelpCtxHint.class).
assertWarnings();
}
- @Test public void constantString() throws Exception {
+ @Test
+ public void constantString() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"some.\" + \"id\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"some.\" + \"id\");\n" +
"}\n").
run(HelpCtxHint.class).
assertWarnings();
}
@Ignore // XXX need #209759 to implement check for constants
- @Test public void computedString() throws Exception {
+ @Test
+ public void computedString() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(toString());\n" +
+ " Object o = new org.openide.util.HelpCtx(toString());\n" +
"}\n").
run(HelpCtxHint.class).
assertWarnings("2:15-2:55:verifier:nonconstant help ID");
}
- @Test public void simpleClass() throws Exception {
+ @Test
+ public void simpleClass() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(Test.class);\n" +
+ " Object o = new org.openide.util.HelpCtx(Test.class);\n" +
"}\n").
run(HelpCtxHint.class).
findWarning("2:15-2:55:verifier:" + HelpCtx_onClass_warning()).
@@ -72,15 +76,16 @@ public class HelpCtxHintTest {
assertCompilable().
assertOutput("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"test.Test\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"test.Test\");\n" +
"}\n");
}
- @Test public void className() throws Exception {
+ @Test
+ public void className() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(Test.class.getName());\n" +
+ " Object o = new org.openide.util.HelpCtx(Test.class.getName());\n" +
"}\n").
run(HelpCtxHint.class).
findWarning("2:15-2:65:verifier:" + HelpCtx_onClassName_warning()).
@@ -88,16 +93,17 @@ public class HelpCtxHintTest {
assertCompilable().
assertOutput("package test;\n" +
"class Test {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"test.Test\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"test.Test\");\n" +
"}\n");
}
- @Test public void nestedClass() throws Exception {
+ @Test
+ public void nestedClass() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
" class Nested {\n" +
- " Object _ = new org.openide.util.HelpCtx(Nested.class);\n" +
+ " Object o = new org.openide.util.HelpCtx(Nested.class);\n" +
" }\n" +
"}\n").
run(HelpCtxHint.class).
@@ -107,17 +113,18 @@ public class HelpCtxHintTest {
assertOutput("package test;\n" +
"class Test {\n" +
" class Nested {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"test.Test$Nested\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"test.Test$Nested\");\n" +
" }\n" +
"}\n");
}
- @Test public void nestedClassName() throws Exception {
+ @Test
+ public void nestedClassName() throws Exception {
HintTest.create().classpath(cp()).
input("package test;\n" +
"class Test {\n" +
" class Nested {\n" +
- " Object _ = new org.openide.util.HelpCtx(Nested.class.getName());\n" +
+ " Object o = new org.openide.util.HelpCtx(Nested.class.getName());\n" +
" }\n" +
"}\n").
run(HelpCtxHint.class).
@@ -127,7 +134,7 @@ public class HelpCtxHintTest {
assertOutput("package test;\n" +
"class Test {\n" +
" class Nested {\n" +
- " Object _ = new org.openide.util.HelpCtx(\"test.Test$Nested\");\n" +
+ " Object o = new org.openide.util.HelpCtx(\"test.Test$Nested\");\n" +
" }\n" +
"}\n");
}
diff --git a/apisupport/timers/nbproject/project.properties b/apisupport/timers/nbproject/project.properties
index b0cbee0..7e57a7e 100644
--- a/apisupport/timers/nbproject/project.properties
+++ b/apisupport/timers/nbproject/project.properties
@@ -17,8 +17,11 @@
# under the License.
javac.compilerargs=-Xlint:unchecked
-javac.source=1.6
+javac.source=1.8
test.unit.run.cp.extra=\
${openide.options.dir}/modules/org-openide-awt.jar:\
javadoc.arch=${basedir}/arch.xml
+
+test.config.stable.includes=**/InstanceWatcherTest.class,\
+ **/TimesCollectorPeerTest.class
\ No newline at end of file
diff --git a/apisupport/timers/test/unit/src/org/netbeans/modules/timers/TimesCollectorPeerTest.java b/apisupport/timers/test/unit/src/org/netbeans/modules/timers/TimesCollectorPeerTest.java
index 1934f54..e1b9b2a 100644
--- a/apisupport/timers/test/unit/src/org/netbeans/modules/timers/TimesCollectorPeerTest.java
+++ b/apisupport/timers/test/unit/src/org/netbeans/modules/timers/TimesCollectorPeerTest.java
@@ -22,9 +22,7 @@ import java.beans.PropertyVetoException;
import java.io.File;
import java.io.IOException;
import javax.swing.JFrame;
-import org.netbeans.junit.MockServices;
import org.netbeans.junit.NbTestCase;
-import org.netbeans.modules.timers.TimeComponent;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;
import org.openide.filesystems.LocalFileSystem;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists