Skip to content

Commit

Permalink
Create a dedicated xml for java test.
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasberry committed Nov 11, 2021
1 parent e17fe1d commit 42674d6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
20 changes: 20 additions & 0 deletions sbe-tool/src/test/resources/deprecated-msg-test-schema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe"
package="since.deprecated"
id="876"
version="4"
semanticVersion="5.2"
description="Issue 876 - Test case for Deprecated messages for Java"
byteOrder="littleEndian">
<types>
<composite name="messageHeader" description="Message identifiers and length of message root">
<type name="blockLength" primitiveType="uint16"/>
<type name="templateId" primitiveType="uint16"/>
<type name="schemaId" primitiveType="uint16"/>
<type name="version" primitiveType="uint16"/>
</composite>
</types>
<sbe:message name="DeprecatedMessage" id="1" semanticType="n/a" description="Message deprecated since version 3" deprecated="3">
<field name="v1" id="1" type="uint64" />
</sbe:message>
</sbe:messageSchema>

0 comments on commit 42674d6

Please sign in to comment.