@Test public void getVATShouldReturnConfiguredVATAsDouble() throws Exception { OrderConfiguration orderConfiguration = orderConfiguration(); Fees fees = new Fees(orderConfiguration); assertThat(fees.getShippingFee()).isEqualTo(11); }
@GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; }
Fees { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; } }
Fees { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; } Fees();  Fees(OrderConfiguration orderConfiguration); }
Fees { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; } Fees();  Fees(OrderConfiguration orderConfiguration); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll Double getShippingFee(); @GET @Path("/vat") @Produces(MediaType.APPLICATION_JSON) @PermitAll Double getVAT(); }
Fees { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; } Fees();  Fees(OrderConfiguration orderConfiguration); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll Double getShippingFee(); @GET @Path("/vat") @Produces(MediaType.APPLICATION_JSON) @PermitAll Double getVAT();  }