mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
Issue 695: Used expected from setup method
This commit is contained in:
parent
636dafe1d3
commit
acb62e1cee
@ -45,17 +45,14 @@ public class ReturnEmptyVirtualMachinesOnNotFoundOr404Test {
|
||||
}
|
||||
|
||||
public void testOn404() {
|
||||
VirtualMachines expected = VirtualMachines.builder().build();
|
||||
assertEquals(function.apply(new HttpResponseException("response exception", null, new HttpResponse(404, "404 message", null))), expected);
|
||||
}
|
||||
|
||||
public void testOnNotFound() {
|
||||
VirtualMachines expected = VirtualMachines.builder().build();
|
||||
assertEquals(function.apply(new ResourceNotFoundException()),expected);
|
||||
}
|
||||
|
||||
public void testOnNotFoundChained() {
|
||||
VirtualMachines expected = VirtualMachines.builder().build();
|
||||
assertEquals(function.apply(new RuntimeException(new ResourceNotFoundException())),expected);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user