Skip to content

Commit 8337fbb

Browse files
unknownunknown
authored andcommitted
Merge branch 'master' into QFJ-845
2 parents 892e312 + f4c1794 commit 8337fbb

File tree

7 files changed

+46
-7
lines changed

7 files changed

+46
-7
lines changed

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</licenses>
2525

2626
<prerequisites>
27-
<maven>3.2.5</maven>
27+
<maven>3.3.3</maven>
2828
</prerequisites>
2929

3030
<modules>
@@ -56,7 +56,6 @@
5656
<artifactId>maven-compiler-plugin</artifactId>
5757
<version>3.3</version>
5858
<configuration>
59-
<fork>true</fork>
6059
<meminitial>128m</meminitial>
6160
<maxmem>756m</maxmem>
6261
<source>${jdkLevel}</source>
@@ -105,7 +104,7 @@
105104
</plugin>
106105
<plugin>
107106
<artifactId>maven-assembly-plugin</artifactId>
108-
<version>2.5.2</version>
107+
<version>2.5.4</version>
109108
</plugin>
110109
</plugins>
111110
</pluginManagement>

quickfixj-codegenerator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<dependency>
2626
<groupId>org.apache.maven</groupId>
2727
<artifactId>maven-plugin-api</artifactId>
28-
<version>3.2.5</version>
28+
<version>3.3.3</version>
2929
</dependency>
3030
<dependency>
3131
<groupId>org.apache.maven</groupId>

quickfixj-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
</plugin>
324324
<plugin>
325325
<artifactId>maven-javadoc-plugin</artifactId>
326-
<version>2.10.1</version>
326+
<version>2.10.3</version>
327327
</plugin>
328328
<plugin>
329329
<artifactId>maven-jxr-plugin</artifactId>

quickfixj-core/src/main/doc/usermanual/usage/user_defined_fields.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <H2>User Defined Fields</H2>
1717
be used to set and get user defined fields? Well one answer would be to use the non-type safe
1818
set and get fields like so:
1919
</p>
20-
<pre class="code">message.setField(new StringField(6123), "value");
20+
<pre class="code">message.setField(new StringField(6123, "value"));
2121
StringField field = message.getField(new StringField(6123));
2222
</pre>
2323

quickfixj-core/src/main/java/quickfix/DataDictionary.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,18 @@ public boolean isCheckUnorderedGroupFields() {
474474
return checkUnorderedGroupFields;
475475
}
476476

477+
public boolean isCheckFieldsHaveValues() {
478+
return checkFieldsHaveValues;
479+
}
480+
481+
public boolean isCheckUserDefinedFields() {
482+
return checkUserDefinedFields;
483+
}
484+
485+
public boolean isAllowUnknownMessageFields() {
486+
return allowUnknownMessageFields;
487+
}
488+
477489
/**
478490
* Controls whether group fields are in the same order
479491
*
@@ -523,6 +535,8 @@ private void copyFrom(DataDictionary rhs) {
523535
checkFieldsOutOfOrder = rhs.checkFieldsOutOfOrder;
524536
checkFieldsHaveValues = rhs.checkFieldsHaveValues;
525537
checkUserDefinedFields = rhs.checkUserDefinedFields;
538+
checkUnorderedGroupFields = rhs.checkUnorderedGroupFields;
539+
allowUnknownMessageFields = rhs.allowUnknownMessageFields;
526540

527541
copyMap(messageFields, rhs.messageFields);
528542
copyMap(requiredFields, rhs.requiredFields);
@@ -997,6 +1011,10 @@ private void load(InputStream inputStream) throws ConfigError {
9971011
}
9981012
}
9991013

1014+
public int getNumMessageCategories() {
1015+
return messageCategory.size();
1016+
}
1017+
10001018
private void load(Document document, String msgtype, Node node) throws ConfigError {
10011019
String name;
10021020
final NodeList fieldNodes = node.getChildNodes();

quickfixj-core/src/test/java/quickfix/DataDictionaryTest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ public void testHeaderTrailerRequired() throws Exception {
196196
data += "</fix>";
197197

198198
DataDictionary dd = new DataDictionary(new ByteArrayInputStream(data.getBytes()));
199+
assertEquals(1, dd.getNumMessageCategories());
200+
assertEquals("0", dd.getMsgType("Heartbeat"));
201+
199202
assertTrue("BeginString should be required", dd.isRequiredHeaderField(8));
200203
assertFalse("OnBehalfOfCompID should not be required", dd.isRequiredHeaderField(115));
201204
assertTrue("Checksum should be required", dd.isRequiredTrailerField(10));
@@ -428,6 +431,25 @@ public void testNewOrderSingleWithMisplacedTag50() throws Exception {
428431
assertTrue(nos4.getHeader().isSetField(new SenderSubID()));
429432
}
430433

434+
public void testCopy() throws Exception {
435+
final DataDictionary dataDictionary = new DataDictionary(getDictionary());
436+
437+
dataDictionary.setAllowUnknownMessageFields(true);
438+
dataDictionary.setCheckFieldsHaveValues(false);
439+
dataDictionary.setCheckFieldsOutOfOrder(false);
440+
dataDictionary.setCheckUnorderedGroupFields(false);
441+
dataDictionary.setCheckUserDefinedFields(false);
442+
443+
DataDictionary ddCopy = new DataDictionary(dataDictionary);
444+
445+
assertEquals(ddCopy.isAllowUnknownMessageFields(),dataDictionary.isAllowUnknownMessageFields());
446+
assertEquals(ddCopy.isCheckFieldsHaveValues(),dataDictionary.isCheckFieldsHaveValues());
447+
assertEquals(ddCopy.isCheckFieldsOutOfOrder(),dataDictionary.isCheckFieldsOutOfOrder());
448+
assertEquals(ddCopy.isCheckUnorderedGroupFields(),dataDictionary.isCheckUnorderedGroupFields());
449+
assertEquals(ddCopy.isCheckUserDefinedFields(),dataDictionary.isCheckUserDefinedFields());
450+
451+
}
452+
431453
//
432454
// Group Validation Tests in RepeatingGroupTest
433455
//

quickfixj-distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<!-- generate javadocs into apidocs folder -->
129129
<plugin>
130130
<artifactId>maven-javadoc-plugin</artifactId>
131-
<version>2.10.1</version>
131+
<version>2.10.3</version>
132132
<executions>
133133
<execution>
134134
<id>javadoc-jar</id>

0 commit comments

Comments
 (0)