> + */
> +package org.jclouds.openstack.neutron.v2.domain;
> +
> +import com.google.common.base.Objects;
> +import com.google.gson.annotations.SerializedName;
> +
> +/**
> + */
> +public class AddressPair {
> +
> + @SerializedName("mac_address")
> + protected final String macAddress;
> + @SerializedName("ip_address")
> + protected final String ipAddress;
> +
> + protected AddressPair(String macAddress, String ipAddress) {
I am at a loss. The tests deserialize the GSON just fine, despite lacking the
ConstructorProperties annotation, including in this case. AddressPair is used
in CreatePort and consequently can be returned by the service and used in Port.
I added a bit to the testCreatePort test just to test AddressPair is
deserialized properly.
I thought
https://github.com/jclouds/jclouds/blob/4c74b497547e42b8bdc94dbae3d4cd94ff3945d6/core/src/main/java/org/jclouds/json/internal/NamingStrategies.java#L160
in conjunction with the naming strategies accomplishes that. I might be wrong!
Can you elaborate with a gist of what the issue is?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/111/files#r14201986