test_class.declarator: DEFAULT_TOTAL_PRICE = BigDecimal.valueOf(50)
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal DEFAULT_TOTAL_PRICE = BigDecimal.valueOf(50);
test_class.type: BigDecimal
test_class.var_name: DEFAULT_TOTAL_PRICE
test_class.declarator: UPDATED_TOTAL_PRICE = BigDecimal.valueOf(150.0)
test_class.modifier: private static final
test_class.original_string: private static final BigDecimal UPDATED_TOTAL_PRICE = BigDecimal.valueOf(150.0);
test_class.type: BigDecimal
test_class.var_name: UPDATED_TOTAL_PRICE
test_class.declarator: DEFAULT_STATUS = OrderStatus.SHIPPED
test_class.modifier: private static final
test_class.original_string: private static final OrderStatus DEFAULT_STATUS = OrderStatus.SHIPPED;
test_class.type: OrderStatus
test_class.var_name: DEFAULT_STATUS
test_class.declarator: UPDATED_STATUS = OrderStatus.DELIVERED
test_class.modifier: private static final
test_class.original_string: private static final OrderStatus UPDATED_STATUS = OrderStatus.DELIVERED;
test_class.type: OrderStatus
test_class.var_name: UPDATED_STATUS
test_class.declarator: DEFAULT_CUSTOMER = "AAAAAAAAAAAAAAA"
test_class.modifier: private static final
test_class.original_string: private static final String DEFAULT_CUSTOMER = "AAAAAAAAAAAAAAA";
test_class.type: String
test_class.var_name: DEFAULT_CUSTOMER
test_class.declarator: orderRepository
test_class.modifier: @Inject
test_class.original_string: @Inject
      OrderRepository orderRepository;
test_class.type: OrderRepository
test_class.var_name: orderRepository
test_class.declarator: orderMapper
test_class.modifier: @Inject
test_class.original_string: @Inject
      OrderMapper orderMapper;
test_class.type: OrderMapper
test_class.var_name: orderMapper
test_class.declarator: order
test_class.modifier: private
test_class.original_string: private Order order;
test_class.type: Order
test_class.var_name: order
test_class.declarator: orderItems
test_class.modifier: private
test_class.original_string: private Set<OrderItem> orderItems;
test_class.type: Set<OrderItem>
test_class.var_name: orderItems
test_class.file: order-service/src/test/java/io/maxilog/web/rest/OrderResourceTest.java
test_class.identifier: OrderResourceTest
test_case.body: @Test
      public void createOrder() {
  
          int databaseSizeBeforeCreate = orderRepository.findAll().size();
  
          given()
                  .contentType(JSON)
                  .body(orderMapper.toDto(this.order))
                  .when().post("/api/orders")
                  .then()
                  .statusCode(201);
  
          // Validate the Order in the database
          List<Order> orderList = orderRepository.findAll();
          Assertions.assertEquals(orderList.size(), databaseSizeBeforeCreate + 1);
          Order order = orderList.get(orderList.size() - 1);
          Assertions.assertEquals(order.getTotalPrice().floatValue(), DEFAULT_TOTAL_PRICE.floatValue());
      }
test_case.class_method_signature: OrderResourceTest.createOrder()
test_case.full_signature: @Test public void createOrder()
test_case.identifier: createOrder
test_case.invocations: size findAll statusCode then post when body contentType given toDto findAll assertEquals size get size assertEquals floatValue getTotalPrice floatValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void createOrder()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(OrderResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(OrderResource.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: orderService
focal_class.modifier: private final
focal_class.original_string: private final OrderService orderService;
focal_class.type: OrderService
focal_class.var_name: orderService
focal_class.file: order-service/src/main/java/io/maxilog/web/rest/OrderResource.java
focal_class.identifier: OrderResource
focal_class.class_method_signature: OrderResource.OrderResource(OrderService orderService)
focal_class.full_signature: @Inject public  OrderResource(OrderService orderService)
focal_class.identifier: OrderResource
focal_class.modifiers: @Inject public
focal_class.parameters: (OrderService orderService)
focal_class.signature:  OrderResource(OrderService orderService)
focal_class.class_method_signature: OrderResource.findAll(@BeanParam PageableImpl pageable)
focal_class.full_signature: @GET @Path("/orders") public Response findAll(@BeanParam PageableImpl pageable)
focal_class.identifier: findAll
focal_class.modifiers: @GET @Path("/orders") public
focal_class.parameters: (@BeanParam PageableImpl pageable)
focal_class.return: Response
focal_class.signature: Response findAll(@BeanParam PageableImpl pageable)
focal_class.class_method_signature: OrderResource.findMyData()
focal_class.full_signature: @GET @Path("/orders/me") public Response findMyData()
focal_class.identifier: findMyData
focal_class.modifiers: @GET @Path("/orders/me") public
focal_class.parameters: ()
focal_class.return: Response
focal_class.signature: Response findMyData()
focal_class.class_method_signature: OrderResource.findById(@PathParam("id") long id)
focal_class.full_signature: @GET @Path("/orders/{id}") public Response findById(@PathParam("id") long id)
focal_class.identifier: findById
focal_class.modifiers: @GET @Path("/orders/{id}") public
focal_class.parameters: (@PathParam("id") long id)
focal_class.return: Response
focal_class.signature: Response findById(@PathParam("id") long id)
focal_class.class_method_signature: OrderResource.create(OrderDTO orderDTO)
focal_class.full_signature: @POST @Path("/orders") public Response create(OrderDTO orderDTO)
focal_class.identifier: create
focal_class.modifiers: @POST @Path("/orders") public
focal_class.parameters: (OrderDTO orderDTO)
focal_class.return: Response
focal_class.signature: Response create(OrderDTO orderDTO)
focal_class.class_method_signature: OrderResource.delete(@PathParam("id") long id)
focal_class.full_signature: @DELETE @Path("/orders/{id}") public Response delete(@PathParam("id") long id)
focal_class.identifier: delete
focal_class.modifiers: @DELETE @Path("/orders/{id}") public
focal_class.parameters: (@PathParam("id") long id)
focal_class.return: Response
focal_class.signature: Response delete(@PathParam("id") long id)
focal_method.body: @GET
      @Path("/orders")
      public Response findAll(@BeanParam PageableImpl pageable) {
          LOGGER.debug("REST request to get all Users");
          return Response.ok().entity(orderService.findAll(pageable)).build();
      }
focal_method.class_method_signature: OrderResource.findAll(@BeanParam PageableImpl pageable)
focal_method.full_signature: @GET @Path("/orders") public Response findAll(@BeanParam PageableImpl pageable)
focal_method.identifier: findAll
focal_method.invocations: debug build entity ok findAll
focal_method.modifiers: @GET @Path("/orders") public
focal_method.parameters: (@BeanParam PageableImpl pageable)
focal_method.return: Response
focal_method.signature: Response findAll(@BeanParam PageableImpl pageable)