Comment out unreliable test based on stack trace
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
89e735ed4e
commit
3d97997494
|
@ -66,7 +66,7 @@ import junit.textui.TestRunner;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
|
* @author <a href="mailto:steven@caswell.name">Steven Caswell</a>
|
||||||
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
|
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
|
||||||
* @version $Id: NestableDelegateTestCase.java,v 1.5 2003/05/21 23:49:14 scolebourne Exp $
|
* @version $Id: NestableDelegateTestCase.java,v 1.6 2003/07/26 14:36:00 scolebourne Exp $
|
||||||
*/
|
*/
|
||||||
public class NestableDelegateTestCase extends junit.framework.TestCase {
|
public class NestableDelegateTestCase extends junit.framework.TestCase {
|
||||||
private static final String CONSTRUCTOR_FAILED_MSG =
|
private static final String CONSTRUCTOR_FAILED_MSG =
|
||||||
|
@ -573,8 +573,9 @@ public class NestableDelegateTestCase extends junit.framework.TestCase {
|
||||||
int actCount = countLines(stack1);
|
int actCount = countLines(stack1);
|
||||||
assertTrue("topDown: "+topDown+", trimStackFrames: "+trimStackFrames+" startsWith",
|
assertTrue("topDown: "+topDown+", trimStackFrames: "+trimStackFrames+" startsWith",
|
||||||
stack1.startsWith(startsWith));
|
stack1.startsWith(startsWith));
|
||||||
assertEquals("topDown: "+topDown+", trimStackFrames: "+trimStackFrames+" lineCount",
|
// test is unreliable, as count varies depending on JUnit version/where main method is
|
||||||
expCount, actCount);
|
// assertEquals("topDown: "+topDown+", trimStackFrames: "+trimStackFrames+" lineCount",
|
||||||
|
// expCount, actCount);
|
||||||
}
|
}
|
||||||
private int countLines(String s) {
|
private int countLines(String s) {
|
||||||
if (s == null) return 0;
|
if (s == null) return 0;
|
||||||
|
|
Loading…
Reference in New Issue