Skip to content

Commit 0e050fe

Browse files
committed
Added the missing customization method
1 parent 40c40ee commit 0e050fe

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3000Writer.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,4 +952,11 @@ private void initIOSettings() {
952952
"Program name to write at the top of the molfile header, should be exactly 8 characters long",
953953
"CDK"));
954954
}
955+
956+
public void customizeJob() {
957+
for (IOSetting setting : getSettings()) {
958+
fireIOSettingQuestion(setting);
959+
}
960+
}
961+
955962
}

storage/ctab/src/test/java/org/openscience/cdk/io/MDLV3000WriterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public void writeCustomTitle() throws Exception {
462462
Properties sdfWriterProps = new Properties();
463463
sdfWriterProps.put("PorgramName", "FakeNews");
464464
mdlw.addChemObjectIOListener(new PropertiesListener(sdfWriterProps));
465-
// mdlw.customizeJob();
465+
mdlw.customizeJob();
466466
mdlw.write(mol);
467467
}
468468
assertThat(sw.toString(), containsString("FakeNews"));

0 commit comments

Comments
 (0)