TSK-1572: automatically formatted code
This commit is contained in:
parent
66ef87aeef
commit
2a643bc298
|
@ -170,7 +170,8 @@ public class ComparableVersion implements Comparable<ComparableVersion> {
|
|||
* java -jar ${maven.repo.local}/org/apache/maven/maven-artifact/
|
||||
* ${maven.version}/maven-artifact-${maven.version}.jar "1.2.7" "1.2-SNAPSHOT"
|
||||
* </pre>
|
||||
* command to command line. Result of given command will be something like this:
|
||||
*
|
||||
* <p>command to command line. Result of given command will be something like this:
|
||||
*
|
||||
* <pre>
|
||||
* Display parameters as parsed by Maven (in canonical form) and comparison result:
|
||||
|
|
|
@ -17,8 +17,8 @@ class CollectionUtilTest {
|
|||
List<Integer> listWith1000Entries =
|
||||
IntStream.rangeClosed(1, 1000).boxed().collect(Collectors.toList());
|
||||
assertThat(listWith1000Entries).hasSize(1000);
|
||||
Collection<List<Integer>> partitions = CollectionUtil
|
||||
.partitionBasedOnSize(listWith1000Entries, 100);
|
||||
Collection<List<Integer>> partitions =
|
||||
CollectionUtil.partitionBasedOnSize(listWith1000Entries, 100);
|
||||
assertThat(partitions).hasSize(10);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,8 @@ public class TaskHistoryEventController {
|
|||
public TaskHistoryEventController(
|
||||
TaskanaEngineConfiguration taskanaEngineConfiguration,
|
||||
SimpleHistoryServiceImpl simpleHistoryServiceImpl,
|
||||
TaskHistoryEventRepresentationModelAssembler assembler) throws SQLException {
|
||||
TaskHistoryEventRepresentationModelAssembler assembler)
|
||||
throws SQLException {
|
||||
|
||||
this.simpleHistoryService = simpleHistoryServiceImpl;
|
||||
this.simpleHistoryService.initialize(taskanaEngineConfiguration.buildTaskanaEngine());
|
||||
|
|
|
@ -48,7 +48,6 @@ class TaskanaSecurityConfigAccTest {
|
|||
|
||||
setSecurityFlag(false);
|
||||
|
||||
|
||||
assertThatCode(() -> createTaskanaEngine(false)).doesNotThrowAnyException();
|
||||
}
|
||||
|
||||
|
|
|
@ -350,8 +350,7 @@ class QueryWorkbasketAccTest extends AbstractAccTest {
|
|||
|
||||
assertThat(results)
|
||||
.extracting(WorkbasketSummary::getId)
|
||||
.containsExactly(
|
||||
"WBI:100000000000000000000000000000000001");
|
||||
.containsExactly("WBI:100000000000000000000000000000000001");
|
||||
}
|
||||
|
||||
@WithAccessId(user = "teamlead-1")
|
||||
|
|
|
@ -21,7 +21,6 @@ import pro.taskana.workbasket.rest.models.WorkbasketSummaryRepresentationModel;
|
|||
@TaskanaSpringBootTest
|
||||
public class AbstractAccTest {
|
||||
|
||||
|
||||
protected RestHelper restHelper = new RestHelper(8080);
|
||||
|
||||
protected TaskRepresentationModel getTaskResourceSample() {
|
||||
|
|
|
@ -7,8 +7,8 @@ import java.util.Collection;
|
|||
import pro.taskana.classification.rest.models.ClassificationDefinitionRepresentationModel;
|
||||
import pro.taskana.common.rest.models.CollectionRepresentationModel;
|
||||
|
||||
public class ClassificationDefinitionCollectionRepresentationModel extends
|
||||
CollectionRepresentationModel<ClassificationDefinitionRepresentationModel> {
|
||||
public class ClassificationDefinitionCollectionRepresentationModel
|
||||
extends CollectionRepresentationModel<ClassificationDefinitionRepresentationModel> {
|
||||
|
||||
@ConstructorProperties("classifications")
|
||||
public ClassificationDefinitionCollectionRepresentationModel(
|
||||
|
@ -16,9 +16,7 @@ public class ClassificationDefinitionCollectionRepresentationModel extends
|
|||
super(content);
|
||||
}
|
||||
|
||||
/**
|
||||
* the embedded classification definitions.
|
||||
*/
|
||||
/** the embedded classification definitions. */
|
||||
@JsonProperty("classifications")
|
||||
@Override
|
||||
public Collection<ClassificationDefinitionRepresentationModel> getContent() {
|
||||
|
|
|
@ -5,9 +5,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|||
import com.fasterxml.jackson.annotation.JsonUnwrapped;
|
||||
import org.springframework.hateoas.RepresentationModel;
|
||||
|
||||
|
||||
public class ClassificationDefinitionRepresentationModel extends
|
||||
RepresentationModel<ClassificationDefinitionRepresentationModel> {
|
||||
public class ClassificationDefinitionRepresentationModel
|
||||
extends RepresentationModel<ClassificationDefinitionRepresentationModel> {
|
||||
|
||||
@JsonIgnoreProperties("_links")
|
||||
@JsonUnwrapped
|
||||
|
|
|
@ -112,7 +112,6 @@ public class TaskQueryFilterParameter implements QueryParameter<TaskQuery, Void>
|
|||
*/
|
||||
private final Instant[] due;
|
||||
|
||||
|
||||
/**
|
||||
* Filter since a given due timestamp.
|
||||
*
|
||||
|
|
|
@ -320,9 +320,10 @@ public class WorkbasketController {
|
|||
throw new InvalidArgumentException("Can´t create something with NULL body-value.");
|
||||
}
|
||||
|
||||
List<WorkbasketAccessItem> wbAccessItems = workbasketAccessItemRepModels.getContent().stream()
|
||||
.map(workbasketAccessItemRepresentationModelAssembler::toEntityModel)
|
||||
.collect(Collectors.toList());
|
||||
List<WorkbasketAccessItem> wbAccessItems =
|
||||
workbasketAccessItemRepModels.getContent().stream()
|
||||
.map(workbasketAccessItemRepresentationModelAssembler::toEntityModel)
|
||||
.collect(Collectors.toList());
|
||||
workbasketService.setWorkbasketAccessItems(workbasketId, wbAccessItems);
|
||||
List<WorkbasketAccessItem> updatedWbAccessItems =
|
||||
workbasketService.getWorkbasketAccessItems(workbasketId);
|
||||
|
|
|
@ -77,8 +77,8 @@ class ClassificationDefinitionControllerIntTest {
|
|||
restHelper.toUrl(RestEndpoints.URL_CLASSIFICATION_DEFINITIONS) + "?domain=DOMAIN_B",
|
||||
HttpMethod.GET,
|
||||
restHelper.defaultRequest(),
|
||||
ParameterizedTypeReference
|
||||
.forType(ClassificationDefinitionCollectionRepresentationModel.class));
|
||||
ParameterizedTypeReference.forType(
|
||||
ClassificationDefinitionCollectionRepresentationModel.class));
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(response.getBody()).isNotNull();
|
||||
assertThat(response.getBody().getContent())
|
||||
|
@ -118,8 +118,8 @@ class ClassificationDefinitionControllerIntTest {
|
|||
restHelper.toUrl(RestEndpoints.URL_CLASSIFICATION_DEFINITIONS) + "?domain=ADdfe",
|
||||
HttpMethod.GET,
|
||||
restHelper.defaultRequest(),
|
||||
ParameterizedTypeReference
|
||||
.forType(ClassificationDefinitionCollectionRepresentationModel.class));
|
||||
ParameterizedTypeReference.forType(
|
||||
ClassificationDefinitionCollectionRepresentationModel.class));
|
||||
assertThat(response.getBody()).isNotNull();
|
||||
assertThat(response.getBody().getContent()).isEmpty();
|
||||
}
|
||||
|
@ -309,12 +309,7 @@ class ClassificationDefinitionControllerIntTest {
|
|||
|
||||
ClassificationCollectionRepresentationModel clList =
|
||||
new ClassificationCollectionRepresentationModel(
|
||||
List.of(
|
||||
parent,
|
||||
child1,
|
||||
child2,
|
||||
grandChild1,
|
||||
grandChild2));
|
||||
List.of(parent, child1, child2, grandChild1, grandChild2));
|
||||
|
||||
ResponseEntity<Void> response = importRequest(clList);
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);
|
||||
|
@ -419,7 +414,7 @@ class ClassificationDefinitionControllerIntTest {
|
|||
LOGGER.debug("Start Import");
|
||||
File tmpFile = File.createTempFile("test", ".tmp");
|
||||
try (FileOutputStream out = new FileOutputStream(tmpFile);
|
||||
OutputStreamWriter writer = new OutputStreamWriter(out, StandardCharsets.UTF_8);) {
|
||||
OutputStreamWriter writer = new OutputStreamWriter(out, StandardCharsets.UTF_8); ) {
|
||||
mapper.writeValue(writer, clList);
|
||||
}
|
||||
MultiValueMap<String, FileSystemResource> body = new LinkedMultiValueMap<>();
|
||||
|
|
Loading…
Reference in New Issue