From 42674d6d5ee1dcdb1ebf48b936c78084d9290b77 Mon Sep 17 00:00:00 2001 From: matyasberry Date: Thu, 11 Nov 2021 08:04:32 +0100 Subject: [PATCH] Create a dedicated xml for java test. --- .../generation/java/JavaGeneratorTest.java | 2 +- .../resources/deprecated-msg-test-schema.xml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sbe-tool/src/test/resources/deprecated-msg-test-schema.xml diff --git a/sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/java/JavaGeneratorTest.java b/sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/java/JavaGeneratorTest.java index bdaefa43db..3a9064b810 100644 --- a/sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/java/JavaGeneratorTest.java +++ b/sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/java/JavaGeneratorTest.java @@ -462,7 +462,7 @@ public void shouldGenerateRepeatingGroupCountLimits() throws Exception public void shouldMarkDeprecatedClasses() throws Exception { final ParserOptions options = ParserOptions.builder().stopOnError(true).build(); - final MessageSchema schema = parse(Tests.getLocalResource("since-deprecated-test-schema.xml"), options); + final MessageSchema schema = parse(Tests.getLocalResource("deprecated-msg-test-schema.xml"), options); final IrGenerator irg = new IrGenerator(); ir = irg.generate(schema); diff --git a/sbe-tool/src/test/resources/deprecated-msg-test-schema.xml b/sbe-tool/src/test/resources/deprecated-msg-test-schema.xml new file mode 100644 index 0000000000..e7ed27e445 --- /dev/null +++ b/sbe-tool/src/test/resources/deprecated-msg-test-schema.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + +