There are two types in this test with the same name. Do not assume
they will be reported in a particular order, but rather pick the
correct one for testing.
Change-Id: I0593b6505d7aec985504e92f8487b562c96c2a7d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
GeneratedType gtTopology = null;
for (final Type type : genTypes) {
String name = type.getName();
- if ("InterfaceKey".equals(name)) {
+ if ("InterfaceKey".equals(name)
+ && "org.opendaylight.yang.gen.v1.urn.model._abstract.topology.rev130208.topology.interfaces".equals(
+ type.getPackageName())) {
gtIfcKey = (GeneratedTransferObject) type;
} else if ("Interface".equals(name)) {
gtIfc = (GeneratedType) type;