X Tutup
Skip to content

Commit 0855c3d

Browse files
committed
Making tests less verbose
1 parent f069b4f commit 0855c3d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/PeptidePropertiesImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ public void testNetCharge(){
342342
/*"U",*/"V","W",/*"X",*/"Y"/*,"Z"*/};
343343
for (String aa : alpha) {
344344
String p = String.format("AA%sAA", aa);
345-
logger.info(p);
346-
logger.info("pH\tInnovagen\tExpasy\tdiff");
345+
logger.debug(p);
346+
logger.debug("pH\tInnovagen\tExpasy\tdiff");
347347
for ( int i = 1; i < 15; i++) {
348348
double phPoint = (new Double(i)).doubleValue();
349349
double chrgInnovagen = PeptideProperties.getNetCharge(p,false,phPoint);
350350
double chrgExpasy = PeptideProperties.getNetCharge(p,true,phPoint);
351-
logger.info(String.format("%2.1f\t%2.2f\t%2.2f\t%2.2f", phPoint, chrgInnovagen,
351+
logger.debug(String.format("%2.1f\t%2.2f\t%2.2f\t%2.2f", phPoint, chrgInnovagen,
352352
chrgExpasy, chrgInnovagen - chrgExpasy));
353353
}
354354
}

biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/xml/AminoAcidTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
package org.biojava.nbio.aaproperties.xml;
2222

2323
import org.biojava.nbio.aaproperties.PeptideProperties;
24-
import org.biojava.nbio.aaproperties.xml.*;
2524
import org.junit.Test;
2625

2726
import javax.xml.bind.JAXBContext;

biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/xml/ElementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void readXml() throws JAXBException, IOException{
5656
Unmarshaller u = jc.createUnmarshaller();
5757
iTable = (ElementTable)u.unmarshal(new FileInputStream("./src/main/resources/ElementMass.xml" ) );
5858
for(Element e:iTable.getElement()){
59-
logger.info("Element: {}", e);
59+
logger.debug("Element: {}", e);
6060
}
6161
}
6262

@@ -774,7 +774,7 @@ public void generateXml() throws JAXBException, IOException {
774774
// marshall the object to XML
775775
marshaller.marshal(iTable, sw);
776776
// print it out for this example
777-
logger.info("Marshal to file: {}", sw.toString());
777+
logger.debug("Marshal to file: {}", sw.toString());
778778
File outputFile = new File(System.getProperty("java.io.tmpdir"),"ElementMass.xml");
779779
outputFile.deleteOnExit();
780780
BufferedWriter output = new BufferedWriter(new FileWriter(outputFile));

biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/xml/GenerateJavaCodesFromTextTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
package org.biojava.nbio.aaproperties.xml;
2222

23-
import org.junit.Test;
23+
//import org.junit.Test;
2424
import org.slf4j.Logger;
2525
import org.slf4j.LoggerFactory;
2626

@@ -39,7 +39,8 @@ public class GenerateJavaCodesFromTextTest {
3939
/*
4040
* Generate java codes from two text files; Symbol2Name.txt and Symbol2Weight.txt
4141
*/
42-
@Test
42+
// commenting out since there's no assertions here - JD 2015-07-28
43+
//@Test
4344
public void generateCodes() throws IOException{
4445
BufferedReader input = new BufferedReader(new FileReader("./src/test/resources/Symbol2Name.txt"));
4546
Map<String, String> symbol2Name = new HashMap<String, String>();

0 commit comments

Comments
 (0)
X Tutup