summaryrefslogtreecommitdiff
path: root/java/junit-toolkit
diff options
context:
space:
mode:
authorRobert Godfrey <rgodfrey@apache.org>2012-01-27 20:15:31 +0000
committerRobert Godfrey <rgodfrey@apache.org>2012-01-27 20:15:31 +0000
commit4dd9cbaf7fdc498a4eb5f2652d88afd20fe5d530 (patch)
treee49a2b2dab05502118d48385e0989faab41feb45 /java/junit-toolkit
parentab01c9c19e109b2f91cb505f53497592c52ca88d (diff)
downloadqpid-python-4dd9cbaf7fdc498a4eb5f2652d88afd20fe5d530.tar.gz
NO-JIRA: Encapsulate fields, use private members and accesors (keep checkstyle happy)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236867 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/junit-toolkit')
-rw-r--r--java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/SetupTaskHandler.java4
-rw-r--r--java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/XMLTestListener.java12
2 files changed, 8 insertions, 8 deletions
diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/SetupTaskHandler.java b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/SetupTaskHandler.java
index b91ce41ad3..631f4dcdf0 100644
--- a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/SetupTaskHandler.java
+++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/SetupTaskHandler.java
@@ -43,10 +43,10 @@ import java.util.Queue;
public class SetupTaskHandler implements SetupTaskAware
{
/** Holds the set up tasks. */
- Queue<Runnable> setups = new LinkedList<Runnable>();
+ private Queue<Runnable> setups = new LinkedList<Runnable>();
/** Holds the tear down tasks. */
- Queue<Runnable> teardowns = new StackQueue<Runnable>();
+ private Queue<Runnable> teardowns = new StackQueue<Runnable>();
/**
* Adds the specified task to the tests setup.
diff --git a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/XMLTestListener.java b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/XMLTestListener.java
index ac875f89cf..003bd0cecc 100644
--- a/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/XMLTestListener.java
+++ b/java/junit-toolkit/src/main/org/apache/qpid/junit/extensions/listeners/XMLTestListener.java
@@ -81,25 +81,25 @@ public class XMLTestListener implements TKTestListener, ShutdownHookable
* explicit thread id must be used, where notifications come from different threads than the ones that called
* the test method.
*/
- Map<Long, Result> threadLocalResults = Collections.synchronizedMap(new LinkedHashMap<Long, Result>());
+ private Map<Long, Result> threadLocalResults = Collections.synchronizedMap(new LinkedHashMap<Long, Result>());
/**
* Holds results for tests that have ended. Transferring these results here from the per-thread results map, means
* that the thread id is freed for the thread to generate more results.
*/
- List<Result> results = new ArrayList<Result>();
+ private List<Result> results = new ArrayList<Result>();
/** Holds the overall error count. */
- protected int errors = 0;
+ private int errors = 0;
/** Holds the overall failure count. */
- protected int failures = 0;
+ private int failures = 0;
/** Holds the overall tests run count. */
- protected int runs = 0;
+ private int runs = 0;
/** Holds the name of the class that tests are being run for. */
- String testClassName;
+ private String testClassName;
/**
* Creates a new XML results output listener that writes to the specified location.