Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3422

Investigate Test Failure that is occurring in QuickloadUtilsTest class.

    Details

      Description

      • when running IGB without skipping tests, one of the test case is failing in QuickloadUtilsTest
        class.
      • The absolute file path is appeared twice (see below) in the path, and therefore it is not matching with the expected value. Hence, the test case fails
      Path
      /C:/Users/lorainelab/Desktop/2805/relative%20space/A_thaliana_Apr_2008/Users/lorainelab/Desktop/2805/relative%20space/E_unicornis_Jul_2043/down%20stream/E_unicornis_Jul_2043_down.bed.g

        Attachments

          Issue Links

            Activity

            Hide
            kgopu Kaushik Gopu added a comment - - edited

            After reviewing the code of QuickloadUtilsTest, I found the below issue:

            • getURI() method takes three parameters filename, genome version, URI, and constructs absolute path by concatenating these parameters.
            • In the test function, Instead of passing the filename, the entire path is being passed. For this reason, a part of the path is appearing twice in resultant path which leads to failure of the test case.
            Show
            kgopu Kaushik Gopu added a comment - - edited After reviewing the code of QuickloadUtilsTest, I found the below issue: getURI() method takes three parameters filename, genome version, URI, and constructs absolute path by concatenating these parameters. In the test function, Instead of passing the filename, the entire path is being passed. For this reason, a part of the path is appearing twice in resultant path which leads to failure of the test case.
            Hide
            kgopu Kaushik Gopu added a comment -
            • fixed the issue, and now IGB should able to run without failing any test cases.
            • tested in windows, and no test case failures are encountered while compiling.
            • moving to first level review for testing.
            • branch to be pulled for testing.
            Show
            kgopu Kaushik Gopu added a comment - fixed the issue, and now IGB should able to run without failing any test cases. tested in windows, and no test case failures are encountered while compiling. moving to first level review for testing. branch to be pulled for testing.
            Hide
            nfreese Nowlan Freese added a comment -

            Tested on Mac using Netbeans debugger. All tests passed correctly.

            Ready for pull request to main-JDK8

            Show
            nfreese Nowlan Freese added a comment - Tested on Mac using Netbeans debugger. All tests passed correctly. Ready for pull request to main-JDK8
            Hide
            kgopu Kaushik Gopu added a comment -

            pull request submitted to main-JDK8.

            Show
            kgopu Kaushik Gopu added a comment - pull request submitted to main-JDK8.
            Hide
            ann.loraine Ann Loraine added a comment - - edited

            To test:

            Obtain the code and make sure it can build on a Windows machine.

            attn: Karthik Raveendran - please test by running the test cases and checking for errors.

            Show
            ann.loraine Ann Loraine added a comment - - edited To test: Obtain the code and make sure it can build on a Windows machine. attn: Karthik Raveendran - please test by running the test cases and checking for errors.
            Hide
            karthik Karthik Raveendran added a comment -

            QuickloadUtilsTest runs without errors.

            Note: Another test class in the same module, QuickloadDataProviderTest, is failing 3/5 tests: testassemblyinfo, validateQuickload, validateSupportedGenomeVersions.

            java.lang.NullPointerException
            	at org.lorainelab.igb.quickload.util.QuickloadUtils.getContextRootKey(QuickloadUtils.java:199)
            	at org.lorainelab.igb.quickload.QuickloadDataProvider.getAssemblyInfo(QuickloadDataProvider.java:217)
            	at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.testAssemblyInfo(QuickloadDataProviderTest.java:64)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
            	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
            	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
            	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
            	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
            	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
            	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
            	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
            	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
            	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
            	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
            	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
            	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
            	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
            	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
            	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
            	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
            	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
            	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
            	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
            	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
            	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
            	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
            
            
            java.lang.NullPointerException
            	at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.validateQuickload(QuickloadDataProviderTest.java:82)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
            	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
            	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
            	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
            	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
            	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
            	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
            	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
            	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
            	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
            	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
            	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
            	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
            	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
            	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
            	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
            	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
            	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
            	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
            	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
            	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
            	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
            	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
            	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
            
            
            java.lang.AssertionError
            	at org.junit.Assert.fail(Assert.java:87)
            	at org.junit.Assert.assertTrue(Assert.java:42)
            	at org.junit.Assert.assertTrue(Assert.java:53)
            	at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.validateSupportedGenomeVersionNames(QuickloadDataProviderTest.java:58)
            

            Closing the issue.

            Show
            karthik Karthik Raveendran added a comment - QuickloadUtilsTest runs without errors. Note : Another test class in the same module, QuickloadDataProviderTest, is failing 3/5 tests: testassemblyinfo, validateQuickload, validateSupportedGenomeVersions. java.lang.NullPointerException at org.lorainelab.igb.quickload.util.QuickloadUtils.getContextRootKey(QuickloadUtils.java:199) at org.lorainelab.igb.quickload.QuickloadDataProvider.getAssemblyInfo(QuickloadDataProvider.java:217) at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.testAssemblyInfo(QuickloadDataProviderTest.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) java.lang.NullPointerException at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.validateQuickload(QuickloadDataProviderTest.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at org.junit.Assert.assertTrue(Assert.java:42) at org.junit.Assert.assertTrue(Assert.java:53) at org.lorainelab.igb.quickload.utils.QuickloadDataProviderTest.validateSupportedGenomeVersionNames(QuickloadDataProviderTest.java:58) Closing the issue.

              People

              • Assignee:
                kgopu Kaushik Gopu
                Reporter:
                kgopu Kaushik Gopu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: