Author: alex.guizar(a)jboss.com
Date: 2010-07-22 03:25:41 -0400 (Thu, 22 Jul 2010)
New Revision: 898
Modified:
trunk/stress-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw155TestCase.java
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/generator/ImmediateMessageGenerator.java
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/sender/HTTPSender.java
Log:
remove jdk 1.5 incompatibilities
Modified:
trunk/stress-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw155TestCase.java
===================================================================
---
trunk/stress-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw155TestCase.java 2010-07-22
07:08:27 UTC (rev 897)
+++
trunk/stress-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw155TestCase.java 2010-07-22
07:25:41 UTC (rev 898)
@@ -71,7 +71,6 @@
private class ProcNameCompare implements Comparator
{
- @Override
public int compare(Object arg1, Object arg2) {
String name1 = arg1.toString();
String name2 = arg2.toString();
@@ -89,7 +88,6 @@
try
{
String result = null;
- Entry<String,ProcInfo> e;
// we should have 3 versions each of "hello" and "goodbye"
services
// which were deployed in order. send an initial test message to check
@@ -105,16 +103,14 @@
// retire only version 3 of the "hello" process which should make version 2
active
// NOTE: version 3 is the last entry in the sorted TreeMap
- e = helloProcs.lastEntry();
- retireProcess(e.getValue().id);
+ retireProcess(helloProcs.get(helloProcs.lastKey()).id);
// at this point there should be NO active versions of "hello"
result = sendAndValidate("http://localhost:8080/hello",
"hello_request1.xml", "hello_fail_response1.xml");
// activate "hello" version 1
// NOTE: this is the first entry in the TreeMap
- e = helloProcs.firstEntry();
- activateProcess(e.getValue().id);
+ activateProcess(helloProcs.get(helloProcs.firstKey()).id);
// check that version 1 of "hello" is active
result = sendAndValidate("http://localhost:8080/hello",
"hello_request1.xml", "hello_response1.xml");
@@ -137,8 +133,7 @@
// activate version 2 of "hello"
// NOTE: this is the first entry in the TreeMap
- e = helloProcs.firstEntry();
- activateProcess(e.getValue().id);
+ activateProcess(helloProcs.get(helloProcs.firstKey()).id);
// check that version 2 of "hello" is active
result = sendAndValidate("http://localhost:8080/hello",
"hello_request1.xml", "hello_response2.xml");
Modified:
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/generator/ImmediateMessageGenerator.java
===================================================================
---
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/generator/ImmediateMessageGenerator.java 2010-07-22
07:08:27 UTC (rev 897)
+++
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/generator/ImmediateMessageGenerator.java 2010-07-22
07:25:41 UTC (rev 898)
@@ -98,7 +98,6 @@
this.counter = counter;
}
- @Override
public void run() {
try {
sender.send(message, null);
Modified:
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/sender/HTTPSender.java
===================================================================
---
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/sender/HTTPSender.java 2010-07-22
07:08:27 UTC (rev 897)
+++
trunk/stress-tests/src/test/java/org/jboss/soa/esb/qa/teargas/message/sender/HTTPSender.java 2010-07-22
07:25:41 UTC (rev 898)
@@ -26,7 +26,6 @@
import java.io.Serializable;
import java.net.HttpURLConnection;
import java.net.URL;
-import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
@@ -42,7 +41,6 @@
private Map<String, String> headers = new HashMap<String, String>();
private final Logger log = Logger.getLogger(HTTPSender.class);
- @Override
public void setProperty(String prop, String value) {
if ("method".equals(prop)) {
method = value;
@@ -53,16 +51,13 @@
headers.put(name, value);
}
- @Override
public void init(String address) throws Exception {
url = new URL(address);
}
- @Override
public void close() {
}
- @Override
public Serializable send(Serializable message, Map properties) throws Exception {
HttpURLConnection rc = (HttpURLConnection) url.openConnection();
rc.setRequestMethod(method);
Show replies by date