Skip to content

Commit

Permalink
remove unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelianhan007 committed Dec 9, 2024
1 parent 1ddb6e2 commit c4254f8
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static com.consoleconnect.kraken.operator.core.toolkit.Constants.MAPPER_SIGN;

import com.consoleconnect.kraken.operator.core.dto.StateValueMappingDto;
import com.consoleconnect.kraken.operator.core.exception.KrakenException;
import com.consoleconnect.kraken.operator.core.model.UnifiedAsset;
import com.consoleconnect.kraken.operator.core.model.facet.ComponentAPITargetFacets;
import com.consoleconnect.kraken.operator.core.toolkit.JsonToolkit;
Expand All @@ -21,26 +20,6 @@

@Slf4j
class ResponseMappingTest extends AbstractIntegrationTest implements MappingTransformer {

@Test
void testAllMatch() {
List<Integer> list = List.of(1, 2, 3);
boolean result =
list.stream()
.allMatch(
item -> {
return check(item);
});
System.out.println(result);
}

public boolean check(Integer item) {
if (item > 2) {
throw KrakenException.unProcessableEntityInvalidFormat("test");
}
return true;
}

@SneakyThrows
@Test
void testResponseMapper() {
Expand Down

0 comments on commit c4254f8

Please sign in to comment.