Skip to content

Commit

Permalink
fix: removing unused classes and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovbcfilho committed Jan 26, 2024
1 parent 929355d commit 6d0bf69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
package br.com.grupo63.serviceproduction.controller.dto;

import br.com.grupo63.serviceproduction.entity.status.OrderStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class StatusControllerDTO extends AbstractControllerDTO {
public class StatusControllerDTO {

private String id;
private int order;

@Schema(defaultValue = "Recebido")
private OrderStatus status;

}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public void testListUnfinishedOrders_EndToEnd() {
assertEquals(HttpStatus.OK, response.getStatusCode());
assertNotNull(response.getBody());
assertEquals(response.getBody().size(), 1);
assertEquals(response.getBody().get(0).getStatus(), defaultStatusPersistenceEntity.getStatus());
assertEquals(response.getBody().get(0).getOrder(), defaultStatusPersistenceEntity.getOrder());
assertEquals(response.getBody().get(0).getId(), defaultStatusPersistenceEntity.getId());
verify(statusJpaRepository, times(1)).findByDeletedFalseAndStatusIn(any());
}

Expand Down

0 comments on commit 6d0bf69

Please sign in to comment.