Advertisement
aironman

test drools

Dec 12th, 2019
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Test
  2. public void should_apply_rules_to_order1_exempted_imported_not_imported() {
  3. //GIVEN
  4. Assert.assertNotNull(kSession);
  5. final Order order1 = Utilities.createOrder1();
  6. //WHEN
  7. kSession.insert(order1);
  8.  
  9. //THEN
  10. Assert.assertEquals(1, kSession.fireAllRules());
  11. Assert.assertEquals("Shoud be equals...",29.83d, order1.getTotalPrize(),0d);
  12. Assert.assertEquals("Shoud be equals...",1.50d, order1.getTotalTaxes(),0d);
  13. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement