moving tests to CE

This commit is contained in:
Dmitry Jemerov
2009-09-25 21:04:16 +04:00
parent 6fef276b55
commit 6682b1907b
22 changed files with 6 additions and 0 deletions
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>6</line>
<description>missing</description>
</problem>
<problem>
<file>Foo.java</file>
<line>7</line>
<description>missing</description>
</problem>
</problems>
@@ -0,0 +1,10 @@
/**
@author me
*/
public abstract class Foo {
/**
@param i
@param j
*/
public abstract void foo(int i, int j);
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>4</line>
<description>Duplicate @deprecated tag</description>
</problem>
</problems>
@@ -0,0 +1,7 @@
/**
* Test.
* @deprecated You bet.
* @deprecated Gotcha.
*/
class Foo {
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>5</line>
<description>Duplicate @param tag for parameter 's'</description>
</problem>
</problems>
@@ -0,0 +1,9 @@
class Test {
/**
* Test.
* @param s my string
* @param s another string
*/
void test(String s) {
}
}
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>5</line>
<description>Duplicate @return tag</description>
</problem>
</problems>
@@ -0,0 +1,9 @@
class Test {
/**
* Test.
* @return my string
* @return another string
*/
String test() {
}
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>5</line>
<description>Duplicate @serial tag</description>
</problem>
</problems>
@@ -0,0 +1,8 @@
class Test {
/**
* Test.
* @serial something
* @serial something else
*/
private int a;
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>5</line>
<description>Duplicate @throws tag for exception 'java.lang.Exception'</description>
</problem>
</problems>
@@ -0,0 +1,9 @@
class Test {
/**
* Test.
* @throws java.lang.Exception in case of problems
* @exception java.lang.Exception in case of other problems
*/
void test() throws java.lang.Exception {
}
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
</problems>
@@ -0,0 +1,8 @@
public class Foo {
/**
*description
*@param i this is a parameter
*@param <T> type of object to do something with.
*/
public <T> void foo(T i){}
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
</problems>
@@ -0,0 +1,9 @@
public class Test {
/**
* @throws java.io.IOException exception in some case
* @throws Exception exception in other case
*/
public void foo() throws Exception, java.io.IOException {
}
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
</problems>
@@ -0,0 +1,10 @@
/**
@author me
*/
public class Bar extends Foo {
/**
*/
public void foo(int i) {
i++;
}
}
@@ -0,0 +1,9 @@
/**
@author me
*/
public abstract class Foo {
/**
@param i this is a parameter
*/
public abstract void foo(int i);
}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Test.java</file>
<line>5</line>
<text_range start="79" end="82" />
<method>
<name>void foo()</name>
<display_name>foo()</display_name>
<package>&lt;default&gt;</package>
<class>
<name>Test</name>
<display_name>Test</display_name>
</class>
</method>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Declaration has javadoc problems</problem_class>
<description>Required tag &lt;code&gt;@throws&lt;/code&gt; java.io.IOException is missing</description>
</problem>
</problems>
@@ -0,0 +1,8 @@
class Test {
/**
*@throws java.lang.ArrayIndexOutOfBoundsException in some case
*/
void foo() throws java.io.IOException, java.lang.ArrayIndexOutOfBoundsException {
}
}