use of com.google.api.ads.adwords.axis.v201809.cm.ProductDimension in project googleads-java-lib by googleads.
the class BaseProductDimensionComparatorTest method testCompareUnsupportedDimensionTypes_secondUnsupported_fails.
/**
* Tests that the comparator throws an IllegalArgumentException when passed an instance of a
* supported type as the first argument, and an instance of an unsupported subclass of
* ProductDimension as the second argument.
*/
@Test
public void testCompareUnsupportedDimensionTypes_secondUnsupported_fails() {
// Compare null to an unsupported type.
ProductDimension unsupportedTypeOfDimension = new UnsupportedDimensionType();
thrown.expect(IllegalArgumentException.class);
comparator.compare(createOtherProductDimension(), unsupportedTypeOfDimension);
}
Aggregations