java.lang.AssertionError: 1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM

Kuali JIRA | Weldon Sams | 5 years ago
  1. 0

    I'm not sure we should rely on external hosts or even require Internet access in unit tests. {noformat} java.lang.AssertionError: 1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.kuali.kits.kms.document.validation.test.TestXrefValidator.testRedirectSimple(TestXrefValidator.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {noformat}

    Kuali JIRA | 5 years ago | Weldon Sams
    java.lang.AssertionError: 1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM
  2. 0

    I'm not sure we should rely on external hosts or even require Internet access in unit tests. {noformat} java.lang.AssertionError: 1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.kuali.kits.kms.document.validation.test.TestXrefValidator.testRedirectSimple(TestXrefValidator.java:151) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {noformat}

    Kuali JIRA | 5 years ago | Weldon Sams
    java.lang.AssertionError: 1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM
  3. 0

    Failed tests on Windows

    GitHub | 2 years ago | konmik
    java.lang.AssertionError: # # generated on 2014/09/22 11:30:57 # # --table-start-- dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo tableName=foo # --table-fields-start-- # --field-start-- fieldName=id id=true # --field-end-- # --field-start-- fieldName=foreign foreign=true # --field-end-- # --table-fields-end-- # --table-end-- #################################
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception happens when doing Solr Unit Testing

    Stack Overflow | 5 years ago | zjffdu
    java.lang.RuntimeException: java.lang.AssertionError: ensure your setUp() calls super.setUp() and your tearDown() calls super.tearDown()!!!
  6. 0

    Log4j + Amqp Log sample Code is Failing

    Stack Overflow | 4 years ago | Akhil Dev
    java.lang.AssertionError: Time out waiting for message

  1. andyglick 2 times, last 3 months ago
  2. WoodenDoors 2 times, last 8 months ago
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    1 not 2 / (DocId:null)(SvnRevision:null) (Report: Source: 0) Path: path/test:12:23 [ERROR] (id/element:attribute) HOST_NOT_FOUND. DNS failed to find host: http://poblano.uits.indiana.edu/~blacks/produce-error.cgi?test=HTTP_REDIRECT_FROM

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertTrue
    1. org.junit.Assert.fail(Assert.java:91)
    2. org.junit.Assert.assertTrue(Assert.java:43)
    2 frames
  3. org.kuali.kits
    TestXrefValidator.testRedirectSimple
    1. org.kuali.kits.kms.document.validation.test.TestXrefValidator.testRedirectSimple(TestXrefValidator.java:151)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:616)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    14. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    14 frames
  6. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    1 frame
  7. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    5 frames