mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
28 lines
771 B
HTML
28 lines
771 B
HTML
<html>
|
|
<body>
|
|
Reports any calls to methods from the <code>junit.framework.Assert</code> class. This class is
|
|
obsolete and the calls can be replaced by calls to methods from the <code>org.junit.Assert</code> class.
|
|
<p>For example:</p>
|
|
<pre><code lang="java">
|
|
<b>import</b> org.junit.*;
|
|
<b>public class</b> NecessaryTest {
|
|
@Test
|
|
<b>public void</b> testIt() {
|
|
junit.framework.Assert.assertEquals("expected", "actual");
|
|
}
|
|
}
|
|
</code></pre>
|
|
<p>After the quick fix is applied, the result looks like the following:</p>
|
|
<pre><code lang="java">
|
|
<b>import</b> org.junit;
|
|
<b>public class</b> NecessaryTest {
|
|
|
|
<b>public void</b> testIt() {
|
|
Assert.assertEquals("expected", "actual");
|
|
}
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
</body>
|
|
</html> |