Skip to content

Commit

Permalink
Suppress Log4J unconfigured warning in cdk-iordf tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Feb 1, 2018
1 parent cdcc363 commit 9ddc54b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void testMolecule() throws Exception {
logger.info("Testing: " + filename);
InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
CDKOWLReader reader = new CDKOWLReader(new InputStreamReader(ins));
IAtomContainer mol = (IAtomContainer) reader.read(new AtomContainer());
IAtomContainer mol = reader.read(new AtomContainer());
reader.close();

Assert.assertNotNull(mol);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
*/
package org.openscience.cdk.io.rdf;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
Expand All @@ -47,6 +50,8 @@ public static void setup() {

@Test
public void testWriteMolecule() throws Exception {
BasicConfigurator.configure();
Logger.getRootLogger().setLevel(Level.ERROR);
StringWriter output = new StringWriter();
CDKOWLWriter writer = new CDKOWLWriter(output);

Expand Down

0 comments on commit 9ddc54b

Please sign in to comment.