private JaxbTestHelper() {
}
- @Deprecated
- public static Object jaxbUnmarshall(Object schemaObject, String json) throws JAXBException {
- return jaxbUnmarshall(schemaObject.getClass(), json);
- }
-
public static <T> T jaxbUnmarshall(Class<T> schemaClass, String json) throws JAXBException {
Map<String, String> namespacePrefixMapper = new HashMap<>(3);
namespacePrefixMapper.put("router", "router");
@Test
public void test_NeutronFirewall_JAXB() throws JAXBException {
- NeutronFirewall dummyObject = new NeutronFirewall();
-
- NeutronFirewall testObject = (NeutronFirewall) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronFirewall testObject = JaxbTestHelper.jaxbUnmarshall(NeutronFirewall.class,
NEUTRON_FIREWALL_SOURCE_JSON);
Assert.assertEquals("NeutronFirewall JAXB Test 1: Testing id failed",
"d6220bbb-35f3-48ab-8eae-69c60aef3546", testObject.getID());
@Test
public void test_NeutronFirewallPolicy_JAXB() throws JAXBException {
- NeutronFirewallPolicy dummyObject = new NeutronFirewallPolicy();
-
- NeutronFirewallPolicy testObject = (NeutronFirewallPolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronFirewallPolicy testObject = JaxbTestHelper.jaxbUnmarshall(NeutronFirewallPolicy.class,
NEUTRON_FIREWALL_POLICY_SOURCE_JSON);
Assert.assertEquals("NeutronFirewallPolicy JAXB Test 1: Testing id failed",
"d6220bbb-35f3-48ab-8eae-69c60aef3546", testObject.getID());
@Test
public void test_NeutronFirewallRule_JAXB() throws JAXBException {
- NeutronFirewallRule dummyObject = new NeutronFirewallRule();
-
- NeutronFirewallRule testObject = (NeutronFirewallRule) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronFirewallRule testObject = JaxbTestHelper.jaxbUnmarshall(NeutronFirewallRule.class,
NEUTRON_FIREWALL_RULE_SOURCE_JSON);
Assert.assertEquals("NeutronFirewallRule JAXB Test 1: Testing id failed",
"8722e0e0-9cc9-4490-9660-8c9a5732fbb0", testObject.getID());
@Test
public void test_NeutronFloatingIp_JAXB() throws JAXBException {
- NeutronFloatingIp dummyObject = new NeutronFloatingIp();
-
- NeutronFloatingIp testObject = (NeutronFloatingIp) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronFloatingIp testObject = JaxbTestHelper.jaxbUnmarshall(NeutronFloatingIp.class,
NEUTRON_FLOATING_IP_SOURCE_JSON);
Assert.assertEquals("NeutronFloatingIp JAXB Test 1: Testing id failed",
"2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
@Test
public void test_NeutronID_JAXB() throws JAXBException {
- NeutronID neutronObject = new NeutronID();
- NeutronID testObject = (NeutronID) JaxbTestHelper.jaxbUnmarshall(neutronObject, NEUTRON_ID_SOURCE_JSON);
+ NeutronID testObject = JaxbTestHelper.jaxbUnmarshall(NeutronID.class, NEUTRON_ID_SOURCE_JSON);
Assert.assertEquals("NeutronID JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
testObject.getID());
@Test
public void test_NeutronIps_JAXB() throws JAXBException {
- NeutronIps neutronObject = new NeutronIps();
- NeutronIps testObject = (NeutronIps) JaxbTestHelper.jaxbUnmarshall(neutronObject, NEUTRON_IPS_SOURCE_JSON);
+ NeutronIps testObject = JaxbTestHelper.jaxbUnmarshall(NeutronIps.class, NEUTRON_IPS_SOURCE_JSON);
Assert.assertEquals("NeutronIps JAXB Test 1: Testing ip_address failed", "192.168.111.3",
testObject.getIpAddress());
@Test
public void test_NeutronLoadBalancerHealthMonitor_JAXB() throws JAXBException {
- NeutronLoadBalancerHealthMonitor dummyObject = new NeutronLoadBalancerHealthMonitor();
-
- NeutronLoadBalancerHealthMonitor testObject = (NeutronLoadBalancerHealthMonitor) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_LOAD_BALANCER_HEALTH_MONITOR_SOURCE_JSON);
+ NeutronLoadBalancerHealthMonitor testObject = JaxbTestHelper.jaxbUnmarshall(
+ NeutronLoadBalancerHealthMonitor.class, NEUTRON_LOAD_BALANCER_HEALTH_MONITOR_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancerHealthMonitor JAXB Test 1: Testing id failed",
"2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
@Test
public void test_NeutronLoadBalancer_JAXB() throws JAXBException {
- NeutronLoadBalancer dummyObject = new NeutronLoadBalancer();
-
- NeutronLoadBalancer testObject = (NeutronLoadBalancer) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronLoadBalancer testObject = JaxbTestHelper.jaxbUnmarshall(NeutronLoadBalancer.class,
NEUTRON_LOAD_BALANCER_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancer JAXB Test 1: Testing id failed",
"2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.uuid);
@Test
public void test_NeutronLoadBalancerListener_JAXB() throws JAXBException {
- NeutronLoadBalancerListener dummyObject = new NeutronLoadBalancerListener();
-
- NeutronLoadBalancerListener testObject = (NeutronLoadBalancerListener) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_LOAD_BALANCER_LISTENER_SOURCE_JSON);
+ NeutronLoadBalancerListener testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronLoadBalancerListener.class, NEUTRON_LOAD_BALANCER_LISTENER_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancerListener JAXB Test 1: Testing id failed",
"2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
@Test
public void test_NeutronLoadBalancerPool_JAXB() throws JAXBException {
- NeutronLoadBalancerPool dummyObject = new NeutronLoadBalancerPool();
-
- NeutronLoadBalancerPool testObject = (NeutronLoadBalancerPool) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronLoadBalancerPool testObject = JaxbTestHelper.jaxbUnmarshall(NeutronLoadBalancerPool.class,
NEUTRON_LOAD_BALANCER_POOL_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancerPool JAXB Test 1: Testing id failed",
"12ff63af-4127-4074-a251-bcb2ecc53ebe", testObject.getID());
@Test
public void test_NeutronLoadBalancerPoolMember_JAXB() throws JAXBException {
- NeutronLoadBalancerPoolMember dummyObject = new NeutronLoadBalancerPoolMember();
-
- NeutronLoadBalancerPoolMember testObject = (NeutronLoadBalancerPoolMember) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_LOAD_BALANCER_POOL_MEMBER_SOURCE_JSON);
+ NeutronLoadBalancerPoolMember testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronLoadBalancerPoolMember.class, NEUTRON_LOAD_BALANCER_POOL_MEMBER_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancerPoolMember JAXB Test 1: Testing id failed",
"2f245a7b-796b-4f26-9cf9-9e82d248fda7", testObject.getID());
@Test
public void test_NeutronLoadBalancerSessionPersistence_JAXB() throws JAXBException {
- NeutronLoadBalancerSessionPersistence dummyObject = new NeutronLoadBalancerSessionPersistence();
-
- NeutronLoadBalancerSessionPersistence testObject = (NeutronLoadBalancerSessionPersistence) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_LOAD_BALANCER_SESSION_PERSISTENCE_SOURCE_JSON);
+ NeutronLoadBalancerSessionPersistence testObject = JaxbTestHelper.jaxbUnmarshall(
+ NeutronLoadBalancerSessionPersistence.class, NEUTRON_LOAD_BALANCER_SESSION_PERSISTENCE_SOURCE_JSON);
Assert.assertEquals("NeutronLoadBalancer JAXB Test 1: Testing id failed",
"NeutronLoadBalancerSessionPersistence_Cookie", testObject.getCookieName());
@Test
public void test_NeutronMeteringLabel_JAXB() throws JAXBException {
- NeutronMeteringLabel meteringObject = new NeutronMeteringLabel();
-
- NeutronMeteringLabel testObject = (NeutronMeteringLabel) JaxbTestHelper.jaxbUnmarshall(meteringObject,
+ NeutronMeteringLabel testObject = JaxbTestHelper.jaxbUnmarshall(NeutronMeteringLabel.class,
NEUTRON_METERING_LABEL_SOURCE_JSON);
Assert.assertEquals("NeutronMeteringLabel JAXB Test 1: Testing id failed",
"4e8e5957-649f-477b-9e5b-f1f75b21c03c", testObject.getID());
@Test
public void test_NeutronMeteringLabelRule_JAXB() throws JAXBException {
- NeutronMeteringLabelRule meteringObject = new NeutronMeteringLabelRule();
-
- NeutronMeteringLabelRule testObject = (NeutronMeteringLabelRule) JaxbTestHelper
- .jaxbUnmarshall(meteringObject, NEUTRON_METERING_LABEL_RULE_SOURCE_JSON);
+ NeutronMeteringLabelRule testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronMeteringLabelRule.class, NEUTRON_METERING_LABEL_RULE_SOURCE_JSON);
Assert.assertEquals("NeutronMeteringLabelRule JAXB Test 1: Testing metering_label_id failed",
"e131d186-b02d-4c0b-83d5-0c0725c4f812", testObject.getMeteringLabelRuleLabelID());
@Test
public void test_NeutronNetwork_SingleProvider_JAXB() throws JAXBException {
- NeutronNetwork dummyObject = new NeutronNetwork();
-
- NeutronNetwork testObject = (NeutronNetwork) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronNetwork testObject = JaxbTestHelper.jaxbUnmarshall(NeutronNetwork.class,
NEUTRON_NETWORK_SINGLE_PROVIDER_SOURCE_JSON);
Assert.assertEquals("NeutronNetwork JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
testObject.getID());
@Test
public void test_NeutronNetwork_MultipleProvider_JAXB() throws JAXBException {
- NeutronNetwork dummyObject = new NeutronNetwork();
-
- NeutronNetwork testObject = (NeutronNetwork) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronNetwork testObject = JaxbTestHelper.jaxbUnmarshall(NeutronNetwork.class,
NEUTRON_NETWORK_MULTIPLE_PROVIDER_SOURCE_JSON);
Assert.assertEquals("NeutronNetwork JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
testObject.getID());
@Test
public void test_NeutronNetwork_L3_HA_JAXB() throws JAXBException {
- NeutronNetwork dummyObject = new NeutronNetwork();
-
- NeutronNetwork testObject = (NeutronNetwork) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronNetwork testObject = JaxbTestHelper.jaxbUnmarshall(NeutronNetwork.class,
NEUTRON_NETWORK_L3_HA_SOURCE_JSON);
Assert.assertEquals("NeutronNetwork JAXB Test 1: Testing id failed", "d3a2beea-c6ca-4e76-ba7d-e947c5df0c0e",
testObject.getID());
@Test
public void test_NeutronNetworkQos_JAXB() throws JAXBException {
- NeutronNetwork dummyObject = new NeutronNetwork();
-
- NeutronNetwork testObject = (NeutronNetwork) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronNetwork testObject = JaxbTestHelper.jaxbUnmarshall(NeutronNetwork.class,
NEUTRON_NETWORK_QOS_ENABLED_SOURCE_JSON);
Assert.assertEquals("NeutronNetwork JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
testObject.getID());
@Test
public void test_NeutronNetworkSegment_JAXB() throws JAXBException {
- NeutronNetworkSegment segmentObject = new NeutronNetworkSegment();
-
- NeutronNetworkSegment testObject = (NeutronNetworkSegment) JaxbTestHelper.jaxbUnmarshall(segmentObject,
+ NeutronNetworkSegment testObject = JaxbTestHelper.jaxbUnmarshall(NeutronNetworkSegment.class,
NEUTRON_NETWORK_SEGMENT_SOURCE_JSON);
Assert.assertEquals("NeutronNetworkSegment JAXB Test 1: Testing provider:network_type failed", "vlan",
@Test
public void test_NeutronPortAllowedAddressPairs_JAXB() throws JAXBException {
- NeutronPortAllowedAddressPairs portObject = new NeutronPortAllowedAddressPairs();
-
- NeutronPortAllowedAddressPairs testObject = (NeutronPortAllowedAddressPairs) JaxbTestHelper
- .jaxbUnmarshall(portObject, NEUTRON_PORT_ALLOWED_ADDRESS_PAIRS_SOURCE_JSON);
+ NeutronPortAllowedAddressPairs testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronPortAllowedAddressPairs.class, NEUTRON_PORT_ALLOWED_ADDRESS_PAIRS_SOURCE_JSON);
Assert.assertEquals("NeutronPort Allowed Address Pairs JAXB Test 1: Testing ip_address failed",
"192.168.199.1", testObject.getIpAddress());
@Test
public void test_NeutronPortExtraDHCPOption_JAXB() throws JAXBException {
- NeutronPortExtraDHCPOption portObject = new NeutronPortExtraDHCPOption();
- NeutronPortExtraDHCPOption testObject;
-
- testObject = (NeutronPortExtraDHCPOption) JaxbTestHelper.jaxbUnmarshall(portObject,
+ NeutronPortExtraDHCPOption testObject = JaxbTestHelper.jaxbUnmarshall(NeutronPortExtraDHCPOption.class,
NEUTRON_PORT_EXTRA_DHCP_OPTION_SOURCE_JSON);
Assert.assertEquals("NeutronPortExtraDHCPOption JAXB Test 1: Testing opt_value failed", "123.123.123.456",
@Test
public void test_NeutronPortExtraDHCPOption_IPv4_JAXB() throws JAXBException {
- NeutronPortExtraDHCPOption portObject = new NeutronPortExtraDHCPOption();
- NeutronPortExtraDHCPOption testObject;
-
- testObject = (NeutronPortExtraDHCPOption) JaxbTestHelper.jaxbUnmarshall(portObject,
+ NeutronPortExtraDHCPOption testObject = JaxbTestHelper.jaxbUnmarshall(NeutronPortExtraDHCPOption.class,
NEUTRON_PORT_EXTRA_DHCP_OPTION_IPV4_SOURCE_JSON);
Assert.assertEquals("NeutronPortExtraDHCPOption_IPv4 JAXB Test 1: Testing opt_value failed", "123.123.123.456",
@Test
public void test_NeutronPortExtraDHCPOption_IPv6_JAXB() throws JAXBException {
- NeutronPortExtraDHCPOption portObject = new NeutronPortExtraDHCPOption();
- NeutronPortExtraDHCPOption testObject;
-
- testObject = (NeutronPortExtraDHCPOption) JaxbTestHelper.jaxbUnmarshall(portObject,
- NEUTRON_PORT_EXTRA_DHCP_OPTION_IPV6_SOURCE_JSON);
+ NeutronPortExtraDHCPOption testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronPortExtraDHCPOption.class, NEUTRON_PORT_EXTRA_DHCP_OPTION_IPV6_SOURCE_JSON);
Assert.assertEquals("NeutronPortExtraDHCPOption_IPv6 JAXB Test 1: Testing opt_value failed",
"::ffff:123.123.123.456", testObject.getValue());
@Test
public void test_NeutronPort_JAXB() throws JAXBException {
- NeutronPort testObject = new NeutronPort();
-
- NeutronPort neutronObject = (NeutronPort) JaxbTestHelper.jaxbUnmarshall(testObject, NEUTRON_PORT_SOURCE_JSON);
+ NeutronPort neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronPort.class, NEUTRON_PORT_SOURCE_JSON);
Assert.assertEquals("NeutronPort JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
neutronObject.getID());
@Test
public void test_PortQosEnabled_JAXB() throws JAXBException {
- NeutronPort testObject = new NeutronPort();
-
- NeutronPort neutronObject = (NeutronPort) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronPort neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronPort.class,
NEUTRON_PORT_QOS_ENABLED_SOURCE_JSON);
Assert.assertEquals("NeutronPort JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
neutronObject.getID());
}
private void test_PortSecurityEnabled_JAXB(String sourceJson, Boolean portSecurityEnabled) throws JAXBException {
- NeutronPort testObject = new NeutronPort();
-
- NeutronPort neutronObject = (NeutronPort) JaxbTestHelper.jaxbUnmarshall(testObject, sourceJson);
+ NeutronPort neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronPort.class, sourceJson);
Assert.assertEquals("NeutronPort JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
neutronObject.getID());
@Test
public void test_NeutronQosPolicy_JAXB() throws JAXBException {
- NeutronQosPolicy testObject = new NeutronQosPolicy();
- NeutronQosPolicy neutronObject = (NeutronQosPolicy) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronQosPolicy neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronQosPolicy.class,
NEUTRON_QOS_POLICY_SOURCE_JSON);
Assert.assertEquals("NeutronQosPolicy JAXB Test 1: Testing id failed", "d6220bbb-35f3-48ab-8eae-69c60aef3546",
neutronObject.getID());
@Test
public void test_NeutronRouterInterface_JAXB() throws JAXBException {
- NeutronRouterInterface dummyObject = new NeutronRouterInterface();
-
- NeutronRouterInterface testObject = (NeutronRouterInterface) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronRouterInterface testObject = JaxbTestHelper.jaxbUnmarshall(NeutronRouterInterface.class,
NEUTRON_ROUTER_INTERFACE_SOURCE_JSON);
Assert.assertEquals("NeutronRouterInterface JAXB Test 1: Testing subnet_id failed",
@Test
public void test_NeutronRouter_JAXB() throws JAXBException {
- NeutronRouter dummyObject = new NeutronRouter();
-
- NeutronRouter testObject = (NeutronRouter) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronRouter testObject = JaxbTestHelper.jaxbUnmarshall(NeutronRouter.class,
NEUTRON_ROUTER_SOURCE_JSON);
NeutronRouterNetworkReference externalGatewayInfo = testObject.getExternalGatewayInfo();
@Test
public void test_NeutronRouterNetworkReference_JAXB() throws JAXBException {
- NeutronRouterNetworkReference dummyObject = new NeutronRouterNetworkReference();
-
- NeutronRouterNetworkReference testObject = (NeutronRouterNetworkReference) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_ROUTER_NETWORK_REFERENCE_SOURCE_JSON);
+ NeutronRouterNetworkReference testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronRouterNetworkReference.class, NEUTRON_ROUTER_NETWORK_REFERENCE_SOURCE_JSON);
List<NeutronIps> externalFixedIps = testObject.getExternalFixedIps();
@Test
public void test_NeutronSFCFlowClassifier_JAXB() throws JAXBException {
- NeutronSFCFlowClassifier testObject = new NeutronSFCFlowClassifier();
- NeutronSFCFlowClassifier neutronObject = (NeutronSFCFlowClassifier) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronSFCFlowClassifier neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronSFCFlowClassifier.class,
NEUTRON_SFC_FLOW_CLASSIFIER_SOURCE_JSON);
Assert.assertEquals("NeutronSFCFlowClassifier JAXB Test 1: Testing id failed",
@Test
public void test_NeutronSFCPortChain_JAXB() throws JAXBException {
- NeutronSFCPortChain testObject = new NeutronSFCPortChain();
- NeutronSFCPortChain neutronObject = (NeutronSFCPortChain) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronSFCPortChain neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronSFCPortChain.class,
NEUTRON_SFC_PORT_CHAIN_SOURCE_JSON);
Assert.assertEquals("NeutronSFCPortChain JAXB Test 1: Testing id failed",
@Test
public void test_NeutronSFCPortPairGroup_JAXB() throws JAXBException {
- NeutronSFCPortPairGroup testObject = new NeutronSFCPortPairGroup();
- NeutronSFCPortPairGroup neutronObject = (NeutronSFCPortPairGroup) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronSFCPortPairGroup neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronSFCPortPairGroup.class,
NEUTRON_SFC_PORT_PAIR_GROUP_SOURCE_JSON);
Assert.assertEquals("NeutronSFCPortPairGroup JAXB Test 1: Testing id failed",
@Test
public void test_NeutronSFCPortPair_JAXB() throws JAXBException {
- NeutronSFCPortPair testObject = new NeutronSFCPortPair();
- NeutronSFCPortPair neutronObject = (NeutronSFCPortPair) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronSFCPortPair neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronSFCPortPair.class,
NEUTRON_SFC_PORT_PAIR_SOURCE_JSON);
Assert.assertEquals("NeutronSFCPortPair JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
@Test
public void test_NeutronSecurityGroup_JAXB() throws JAXBException {
- NeutronSecurityGroup dummyObject = new NeutronSecurityGroup();
-
- NeutronSecurityGroup testObject = (NeutronSecurityGroup) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronSecurityGroup testObject = JaxbTestHelper.jaxbUnmarshall(NeutronSecurityGroup.class,
NEUTRON_SECURITY_GROUP_SOURCE_JSON);
Assert.assertEquals("NeutronSecurityGroup JAXB Test 1: Testing id failed",
"2076db17-a522-4506-91de-c6dd8e837028", testObject.getID());
@Test
public void test_NeutronSecurityRule_JAXB() throws JAXBException {
- NeutronSecurityRule dummyObject = new NeutronSecurityRule();
-
- NeutronSecurityRule testObject = (NeutronSecurityRule) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronSecurityRule testObject = JaxbTestHelper.jaxbUnmarshall(NeutronSecurityRule.class,
NEUTRON_SECURITY_RULE_SOURCE_JSON);
Assert.assertEquals("NeutronSecurityRule JAXB Test 1: Testing id failed",
"2bc0accf-312e-429a-956e-e4407625eb62", testObject.getID());
@Test
public void test_NeutronSecurityRuleProtocolNumber_JAXB() throws JAXBException {
- NeutronSecurityRule dummyObject = new NeutronSecurityRule();
- NeutronSecurityRule testObject = (NeutronSecurityRule) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronSecurityRule testObject = JaxbTestHelper.jaxbUnmarshall(NeutronSecurityRule.class,
NEUTRON_SECURITY_RULE_PROTOCOL_NUMBER_SOURCE_JSON);
Assert.assertEquals("NeutronSecurityRuleProtocolNumber JAXB: Testing protocol failed", "6",
testObject.getSecurityRuleProtocol());
@Test
public void test_NeutronSecurityRuleProtocolNumberString_JAXB() throws JAXBException {
- NeutronSecurityRule dummyObject = new NeutronSecurityRule();
- NeutronSecurityRule testObject = (NeutronSecurityRule) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronSecurityRule testObject = JaxbTestHelper.jaxbUnmarshall(NeutronSecurityRule.class,
NEUTRON_SECURITY_RULE_PROTOCOL_NUMBER_STRING_SOURCE_JSON);
Assert.assertEquals("NeutronSecurityRuleProtocolNumberString JAXB: Testing protocol failed", "6",
testObject.getSecurityRuleProtocol());
@Test
public void test_NeutronSubnet_JAXB() throws JAXBException {
- NeutronSubnet dummyObject = new NeutronSubnet();
-
- NeutronSubnet testObject = (NeutronSubnet) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronSubnet testObject = JaxbTestHelper.jaxbUnmarshall(NeutronSubnet.class,
NEUTRON_SUBNET_ENABLED_SOURCE_JSON);
Assert.assertEquals("NeutronSubnet JAXB Test 1: Testing id failed",
"dd4320eb-a56b-412b-ae83-fc5ac2a5e6f6", testObject.getID());
@Test
public void test_NeutronTapFlow_JAXB() throws JAXBException {
- NeutronTapFlow testObject = new NeutronTapFlow();
- NeutronTapFlow neutronObject = (NeutronTapFlow) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronTapFlow neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronTapFlow.class,
NEUTRON_TAP_FLOW_SOURCE_JSON);
Assert.assertEquals("NeutronTapFlow JAXB Test 1: Testing id failed", "f6220bbb-35f3-48ab-8eae-69c60aef3546",
neutronObject.getID());
@Test
public void test_NeutronTapService_JAXB() throws JAXBException {
- NeutronTapService testObject = new NeutronTapService();
- NeutronTapService neutronObject = (NeutronTapService) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronTapService neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronTapService.class,
NEUTRON_TAP_SERVICE_SOURCE_JSON);
Assert.assertEquals("NeutronTapService JAXB Test 1: Testing id failed", "b6440bbb-35f3-48ab-8eae-69c60aef3546",
neutronObject.getID());
@Test
public void test_NeutronTrunk_JAXB() throws JAXBException {
- NeutronTrunk testObject = new NeutronTrunk();
- NeutronTrunk neutronObject = (NeutronTrunk) JaxbTestHelper.jaxbUnmarshall(testObject,
+ NeutronTrunk neutronObject = JaxbTestHelper.jaxbUnmarshall(NeutronTrunk.class,
NEUTRON_TRUNK_SOURCE_JSON);
Assert.assertEquals("NeutronTrunk JAXB Test 1: Testing id failed", "c935240e-4aa6-496a-841c-d113c54499b9",
neutronObject.getID());
@Test
public void test_NeutronVPNDeadPeerDetection_JAXB() throws JAXBException {
- NeutronVpnDeadPeerDetection dummyObject = new NeutronVpnDeadPeerDetection();
-
- NeutronVpnDeadPeerDetection testObject = (NeutronVpnDeadPeerDetection) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_VPN_DEAD_PEER_DETECTION_SOURCE_JSON);
+ NeutronVpnDeadPeerDetection testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronVpnDeadPeerDetection.class, NEUTRON_VPN_DEAD_PEER_DETECTION_SOURCE_JSON);
Assert.assertEquals("NeutronVpnDeadPeerDetection JAXB Test 1: Testing action failed", "hold",
testObject.getAction());
@Test
public void test_NeutronVpnIkePolicy_JAXB() throws JAXBException {
- NeutronVpnIkePolicy dummyObject = new NeutronVpnIkePolicy();
-
- NeutronVpnIkePolicy testObject = (NeutronVpnIkePolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronVpnIkePolicy testObject = JaxbTestHelper.jaxbUnmarshall(NeutronVpnIkePolicy.class,
NEUTRON_VPN_IKE_POLICY_SOURCE_JSON);
Assert.assertEquals("NeutronVpnIkePolicy JAXB Test 1: Testing id failed",
"5522aff7-1b3c-48dd-9c3c-b50f016b73db", testObject.getID());
@Test
public void test_NeutronVpnIPSecPolicy_JAXB() throws JAXBException {
- NeutronVpnIpSecPolicy dummyObject = new NeutronVpnIpSecPolicy();
-
- NeutronVpnIpSecPolicy testObject = (NeutronVpnIpSecPolicy) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronVpnIpSecPolicy testObject = JaxbTestHelper.jaxbUnmarshall(NeutronVpnIpSecPolicy.class,
NEUTRON_VPN_IPSEC_POLICY_SINGLE_PROVIDER_SOURCE_JSON);
Assert.assertEquals("NeutronVpnIpSecPolicy JAXB Test 1: Testing id failed",
"5291b189-fd84-46e5-84bd-78f40c05d69c", testObject.getID());
@Test
public void test_NeutronVpnIPSecSiteConnection_JAXB() throws JAXBException {
- NeutronVpnIpSecSiteConnection dummyObject = new NeutronVpnIpSecSiteConnection();
-
- NeutronVpnIpSecSiteConnection testObject = (NeutronVpnIpSecSiteConnection) JaxbTestHelper
- .jaxbUnmarshall(dummyObject, NEUTRON_VPN_IPSEC_SITE_CONNECTION_SOURCE_JSON);
+ NeutronVpnIpSecSiteConnection testObject = JaxbTestHelper
+ .jaxbUnmarshall(NeutronVpnIpSecSiteConnection.class, NEUTRON_VPN_IPSEC_SITE_CONNECTION_SOURCE_JSON);
Assert.assertEquals("NeutronVpnIpSecSiteConnection JAXB Test 1: Testing id failed",
"cbc152a0-7e93-4f98-9f04-b085a4bf2511", testObject.getID());
@Test
public void test_NeutronVPNLifetime_JAXB() throws JAXBException {
- NeutronVpnLifetime dummyObject = new NeutronVpnLifetime();
-
- NeutronVpnLifetime testObject = (NeutronVpnLifetime) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronVpnLifetime testObject = JaxbTestHelper.jaxbUnmarshall(NeutronVpnLifetime.class,
NEUTRON_VPN_LIFETIME_TEST_SOURCE_JSON);
Assert.assertEquals("NeutronVpnLifetime JAXB Test 1: Testing units failed", "seconds",
testObject.getUnits());
@Test
public void test_NeutronVPNService_JAXB() throws JAXBException {
- NeutronVpnService dummyObject = new NeutronVpnService();
-
- NeutronVpnService testObject = (NeutronVpnService) JaxbTestHelper.jaxbUnmarshall(dummyObject,
+ NeutronVpnService testObject = JaxbTestHelper.jaxbUnmarshall(NeutronVpnService.class,
NEUTRON_VPN_SERVICE_SOURCE_JSON);
Assert.assertEquals("NeutronVpnService JAXB Test 1: Testing router id failed",
"ec8619be-0ba8-4955-8835-3b49ddb76f89", testObject.getRouterUUID());