CommerceEvent extends BaseEvent { @Nullable public Boolean getNonInteraction() { return mNonIteraction; } private  CommerceEvent(Builder builder); private  CommerceEvent(); @Override @NonNull String toString(); @Nullable String getScreen(); @Nullable Boolean getNonInteraction(); @Nullable String getProductAction(); @Nullable Integer getCheckoutStep(); @Nullable String getCheckoutOptions(); @Nullable String getProductListName(); @Nullable String getProductListSource(); @Nullable TransactionAttributes getTransactionAttributes(); @Nullable List<Product> getProducts(); @Nullable String getPromotionAction(); @Nullable List<Promotion> getPromotions(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nullable List<Impression> getImpressions(); @Nullable String getCurrency(); @Nullable String getEventName(); @Override BaseMPMessageBuilder getMessage();  }
@Test public void testNonInteraction() throws Exception { Product product = new Product.Builder("name", "sku", 0).build(); CommerceEvent event = new CommerceEvent.Builder(Product.ADD_TO_CART, product).nonInteraction(true).build(); assertTrue(event.getNonInteraction()); event = new CommerceEvent.Builder(Product.ADD_TO_CART, product).nonInteraction(false).build(); assertFalse(event.getNonInteraction()); }