BAEL-20687 Fix test in core-groovy-2 module (#8608)
This commit is contained in:
parent
d55081bd7a
commit
fd17eaac04
|
@ -28,17 +28,16 @@ class CategoryUnitTest extends GroovyTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://team.baeldung.com/browse/BAEL-20687
|
void test_whenUsingTimeCategory_thenOperationOnNumber() {
|
||||||
// void test_whenUsingTimeCategory_thenOperationOnNumber() {
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy")
|
||||||
// SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy")
|
use (TimeCategory) {
|
||||||
// use (TimeCategory) {
|
assert sdf.format(5.days.from.now) == sdf.format(new Date() + 5.days)
|
||||||
// assert sdf.format(5.days.from.now) == sdf.format(new Date() + 5.days)
|
|
||||||
//
|
sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss")
|
||||||
// sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss")
|
assert sdf.format(10.minutes.from.now) == sdf.format(new Date() + 10.minutes)
|
||||||
// assert sdf.format(10.minutes.from.now) == sdf.format(new Date() + 10.minutes)
|
assert sdf.format(2.hours.ago) == sdf.format(new Date() - 2.hours)
|
||||||
// assert sdf.format(2.hours.ago) == sdf.format(new Date() - 2.hours)
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
void test_whenUsingDOMCategory_thenOperationOnXML() {
|
void test_whenUsingDOMCategory_thenOperationOnXML() {
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,6 @@ class WebserviceManualTest extends GroovyTestCase {
|
||||||
assert stories.size() == 5
|
assert stories.size() == 5
|
||||||
}
|
}
|
||||||
|
|
||||||
/* see BAEL-3753
|
|
||||||
void test_whenConsumingSoap_thenReceiveResponse() {
|
void test_whenConsumingSoap_thenReceiveResponse() {
|
||||||
def url = "http://www.dataaccess.com/webservicesserver/numberconversion.wso"
|
def url = "http://www.dataaccess.com/webservicesserver/numberconversion.wso"
|
||||||
def soapClient = new SOAPClient(url)
|
def soapClient = new SOAPClient(url)
|
||||||
|
@ -90,7 +89,6 @@ class WebserviceManualTest extends GroovyTestCase {
|
||||||
def words = response.NumberToWordsResponse
|
def words = response.NumberToWordsResponse
|
||||||
assert words == "one thousand two hundred and thirty four "
|
assert words == "one thousand two hundred and thirty four "
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
void test_whenConsumingRestGet_thenReceiveResponse() {
|
void test_whenConsumingRestGet_thenReceiveResponse() {
|
||||||
def path = "/get"
|
def path = "/get"
|
||||||
|
|
Loading…
Reference in New Issue