File: ignore_fake_tests.patch

package info (click to toggle)
biojava5-live 5.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 110,812 kB
  • sloc: java: 257,052; xml: 27,480; python: 64; sh: 43; makefile: 39
file content (48 lines) | stat: -rw-r--r-- 1,717 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Subject: ignore some test classes
Description: some class tests do not have tests inside, but junit tries to execute them.
 Simple skip those classes with no real test to avoid errors during build.
Author: Olivier Sallou <osallou@debian.org>
Last-Updated: 2016-12-09
Forwarded: not-needed
--- a/biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/profeat/CookBookTest.java
+++ b/biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/profeat/CookBookTest.java
@@ -25,7 +25,7 @@
 import org.biojava.nbio.aaproperties.profeat.IProfeatProperties.GROUPING;
 import org.biojava.nbio.aaproperties.profeat.IProfeatProperties.TRANSITION;
 import org.biojava.nbio.aaproperties.profeat.ProfeatProperties;
-//import org.junit.Test;
+import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -37,6 +37,9 @@
 
 	// TODO there's no assertions here, i.e. this is not a test! must fix! For the moment removed test tags - JD 2016-03-08
 
+@Test
+public void testFakeTest(){}
+
 	public void shortExample1() throws Exception{
 		/*
 		 * Composition
--- a/biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/xml/GenerateJavaCodesFromTextTest.java
+++ b/biojava-aa-prop/src/test/java/org/biojava/nbio/aaproperties/xml/GenerateJavaCodesFromTextTest.java
@@ -20,7 +20,7 @@
  */
 package org.biojava.nbio.aaproperties.xml;
 
-//import org.junit.Test;
+import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -36,6 +36,9 @@
 
 	private final static Logger logger = LoggerFactory.getLogger(GenerateJavaCodesFromTextTest.class);
 
+@Test
+public void testFake(){}
+
 	/*
 	 * Generate java codes from two text files; Symbol2Name.txt and Symbol2Weight.txt
 	 */