summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-06 08:55:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-12 09:41:28 +0200
commit0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch)
tree218eba20dd23c6a865cf01aa7532bf1261a69bc8 /testtools
parente2e55a7c49079dfd896da6515b98d451e4c8735b (diff)
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'testtools')
-rw-r--r--testtools/qa/cli/CLITest.java2
-rw-r--r--testtools/qa/cliversioning/VersionTestCase.java2
-rw-r--r--testtools/source/servicetests/LocalServiceTest.java1
-rw-r--r--testtools/source/servicetests/RemoteServiceTest.java2
-rw-r--r--testtools/source/servicetests/TestBase.java1
5 files changed, 8 insertions, 0 deletions
diff --git a/testtools/qa/cli/CLITest.java b/testtools/qa/cli/CLITest.java
index 370e5ebf0dde..29ba7a235b0b 100644
--- a/testtools/qa/cli/CLITest.java
+++ b/testtools/qa/cli/CLITest.java
@@ -23,6 +23,7 @@ import java.io.*;
public class CLITest extends ComplexTestCase
{
+ @Override
public String[] getTestMethodNames()
{
// TODO think about trigger of sub-tests from outside
@@ -84,6 +85,7 @@ class Reader extends Thread
start();
}
+ @Override
public void run()
{
try
diff --git a/testtools/qa/cliversioning/VersionTestCase.java b/testtools/qa/cliversioning/VersionTestCase.java
index 4112ed318e8e..3a3d666e0f8a 100644
--- a/testtools/qa/cliversioning/VersionTestCase.java
+++ b/testtools/qa/cliversioning/VersionTestCase.java
@@ -23,6 +23,7 @@ import complexlib.ComplexTestCase;
public class VersionTestCase extends ComplexTestCase
{
+ @Override
public String[] getTestMethodNames()
{
return new String[]
@@ -82,6 +83,7 @@ class Reader extends Thread
start();
}
+ @Override
public void run()
{
try
diff --git a/testtools/source/servicetests/LocalServiceTest.java b/testtools/source/servicetests/LocalServiceTest.java
index 713b9129b1af..ee890faa4ec9 100644
--- a/testtools/source/servicetests/LocalServiceTest.java
+++ b/testtools/source/servicetests/LocalServiceTest.java
@@ -25,6 +25,7 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
public final class LocalServiceTest extends TestBase {
+ @Override
protected TestServiceFactory getTestServiceFactory() throws Exception {
return new TestServiceFactory() {
public Object get() throws Exception {
diff --git a/testtools/source/servicetests/RemoteServiceTest.java b/testtools/source/servicetests/RemoteServiceTest.java
index cbc5eea95b4c..a176f9cb42a3 100644
--- a/testtools/source/servicetests/RemoteServiceTest.java
+++ b/testtools/source/servicetests/RemoteServiceTest.java
@@ -34,6 +34,7 @@ import java.io.InputStreamReader;
import java.io.PrintStream;
public final class RemoteServiceTest extends TestBase {
+ @Override
protected TestServiceFactory getTestServiceFactory() throws Exception {
final Process p = Runtime.getRuntime().exec(new String[] {
"java", "-classpath", System.getProperty("java.class.path"),
@@ -87,6 +88,7 @@ public final class RemoteServiceTest extends TestBase {
private void pipe(final InputStream in, final PrintStream out,
final String prefix) {
new Thread("Pipe: " + prefix) {
+ @Override
public void run() {
BufferedReader r
= new BufferedReader(new InputStreamReader(in));
diff --git a/testtools/source/servicetests/TestBase.java b/testtools/source/servicetests/TestBase.java
index f3d2651ac453..56ef66fe5709 100644
--- a/testtools/source/servicetests/TestBase.java
+++ b/testtools/source/servicetests/TestBase.java
@@ -23,6 +23,7 @@ import complexlib.ComplexTestCase;
import util.WaitUnreachable;
public abstract class TestBase extends ComplexTestCase {
+ @Override
public final String[] getTestMethodNames() {
return new String[] { "test" };
}