Skip to content

Commit

Permalink
Cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCockx committed Nov 29, 2023
1 parent d1fe7c9 commit 1421ee1
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 247 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@
import com.regnosys.cdm.example.AbstractExampleTest;
import com.regnosys.cdm.example.util.ResourcesUtils;
import com.regnosys.rosetta.common.serialisation.RosettaObjectMapper;
import com.regnosys.testing.WhitespaceAgnosticAssert;
import com.rosetta.model.metafields.FieldWithMetaString;
import com.rosetta.model.metafields.MetaFields;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class CreateEligibleCollateralSpecificationFromInstructionTest extends AbstractExampleTest {

@Inject
Expand Down Expand Up @@ -51,7 +50,7 @@ void shouldMergeCommonAndVariableEligibleCollateralCriteria() throws IOException
// Assert
String expectedJson = ResourcesUtils.getJson("merge-eligible-collateral-expected.json");
String mergedJson = RosettaObjectMapper.getNewRosettaObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(merged);
WhitespaceAgnosticAssert.assertEquals(expectedJson, mergedJson);
assertEquals(expectedJson, mergedJson);
}

private static EligibleCollateralCriteria getCommonCriteria() {
Expand Down
Loading

0 comments on commit 1421ee1

Please sign in to comment.