Files
openide/java/java-impl/resources/inspectionDescriptions/UseOfObsoleteAssert.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

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>