Commit 816a4f98 authored by pcregut's avatar pcregut

Added some comments to remove last warnings.

parent 1281ee56
......@@ -31,7 +31,6 @@
package org.ow2.asmdex.specificAnnotationVisitors;
import java.util.ArrayList;
/**
* Tiny class to hold the name and value of an Default Annotation conveniently.
......
......@@ -11,6 +11,9 @@ import org.ow2.asmdex.Opcodes;
import java.io.IOException;
/**
* The Class ApplicationWriterBasicTest.
*/
public class ApplicationWriterBasicTest {
/**
* Tests the visit method, but it does nothing.
......
......@@ -56,6 +56,11 @@ import java.util.Collection;
@RunWith(Parameterized.class)
public class ApplicationWriterTreeTest {
/**
* Data for the arguments of the test (name of files).
*
* @return the collection
*/
@Parameters(name= "{index}: {0}")
public static Collection<Object[]> data() {
ArrayList<Object[]> data = new ArrayList<Object[]>();
......@@ -72,6 +77,11 @@ public class ApplicationWriterTreeTest {
private File dexFile;
/**
* Instantiates a new application writer tree test.
*
* @param file the file
*/
public ApplicationWriterTreeTest(File file) {
dexFile = file;
}
......@@ -100,11 +110,19 @@ public class ApplicationWriterTreeTest {
testGenerationToByteArray(false);
}
/**
* Test with debug skipped (line numbers)
* @throws IOException
*/
@Test
public void testToByteArraySkipLine() throws IOException {
testGenerationToByteArray(true);
}
/**
* Name the test.
* @return the name
*/
public String getName() {
return "testByteArray" + dexFile.getName();
}
......
......@@ -32,14 +32,6 @@ package org.objectweb.asmdex;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
......@@ -48,6 +40,14 @@ import org.ow2.asmdex.ApplicationReader;
import org.ow2.asmdex.Opcodes;
import org.ow2.asmdex.util.AsmDexifierApplicationVisitor;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collection;
/**
* Tests the AsmDexifier.
*
......@@ -68,6 +68,10 @@ import org.ow2.asmdex.util.AsmDexifierApplicationVisitor;
@RunWith(Parameterized.class)
public class AsmDexifierTest {
/**
* Gives back the set of arguments of the tests (in fact just file names).
* @return List of dex file on which to operate.
*/
@Parameters(name= "{index}: {0}")
public static Collection<Object[]> data() {
ArrayList<Object[]> data = new ArrayList<Object[]>();
......@@ -84,6 +88,11 @@ public class AsmDexifierTest {
private File dexFile;
/**
* Instantiates a new asm dexifier test.
*
* @param file the file tested.
*/
public AsmDexifierTest(File file) {
dexFile = file;
}
......
......@@ -14,6 +14,9 @@ import org.ow2.asmdex.Opcodes;
*
*/
public class NullAnnotationVisitorTest {
/**
* The test.
*/
@Test
public void test() {
ApplicationWriter aw = new ApplicationWriter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment