Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039699 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2018-11-27 10:12 | 2018-12-11 20:22 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0PR19Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 6e5c6474aebe | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039699: SortingFilteringGridConfiguration is failing when it should be skipped | |||||||
Description | The SortingFilteringGridConfiguration is failing when it should be skipped. This test is designed to be skipped when there exists grid configurations apart from the default ones. In that case, instead of being skipped, the test is failing. | |||||||
Steps To Reproduce | 1) Go to the [Grid Configuration at Window/Tab/Field level] window 2) Create a new record in the header, for any tab of core 3) Run the SortingFilteringGridConfiguration test. Note that it fails with the following error trace: org.junit.internal.AssumptionViolatedException: Number of custom grid configs: got: <1>, expected: is <0> at org.junit.Assume.assumeThat(Assume.java:118) at org.openbravo.test.views.SortingFilteringGridConfiguration.shouldExecuteOnlyIfThereIsNoGridConfig(SortingFilteringGridConfiguration.java:67) 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:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) java.lang.NullPointerException at org.openbravo.test.views.SortingFilteringGridConfiguration.cleanUp(SortingFilteringGridConfiguration.java:84) .... | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||
|
Notes | |
(0108121) hgbot (developer) 2018-11-27 11:05 |
Repository: erp/devel/pi Changeset: 6e5c6474aebed7fbc4a63269d52a3b46c1720797 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Tue Nov 27 10:52:36 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/6e5c6474aebed7fbc4a63269d52a3b46c1720797 [^] Fixes issue 39699: Avoid NPE when test is skipped When the assumption done in the @BeforeClass method is not fullfilled, then initialization of the "coreWasInDevelopment" variable is not done. In that case, a NPE was being thrown later in the @AfterClass method. Now we are just simply avoiding that NPE in the @AfterClass method. --- M src-test/src/org/openbravo/test/views/SortingFilteringGridConfiguration.java --- |
(0108179) alostale (manager) 2018-11-30 11:16 |
reviewed + tested |
(0108500) hudsonbot (developer) 2018-12-11 20:22 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/470e3cd384c5 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2018-11-27 10:12 | caristu | New Issue | |
2018-11-27 10:12 | caristu | Assigned To | => platform |
2018-11-27 10:12 | caristu | Modules | => Core |
2018-11-27 10:12 | caristu | Triggers an Emergency Pack | => No |
2018-11-27 10:46 | caristu | Summary | SortingFilteringGridConfiguration is failing instead of being skipped => SortingFilteringGridConfiguration is failing when it should be skipped |
2018-11-27 10:46 | caristu | Description Updated | View Revisions |
2018-11-27 10:46 | caristu | Steps to Reproduce Updated | View Revisions |
2018-11-27 10:46 | caristu | Assigned To | platform => caristu |
2018-11-27 10:46 | caristu | Relationship added | related to 0038319 |
2018-11-27 10:47 | caristu | Relationship added | related to 0039360 |
2018-11-27 10:48 | caristu | Steps to Reproduce Updated | View Revisions |
2018-11-27 11:05 | hgbot | Checkin | |
2018-11-27 11:05 | hgbot | Note Added: 0108121 | |
2018-11-27 11:05 | hgbot | Status | new => resolved |
2018-11-27 11:05 | hgbot | Resolution | open => fixed |
2018-11-27 11:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6e5c6474aebed7fbc4a63269d52a3b46c1720797 [^] |
2018-11-27 11:05 | caristu | Review Assigned To | => alostale |
2018-11-30 11:16 | alostale | Note Added: 0108179 | |
2018-11-30 11:16 | alostale | Status | resolved => closed |
2018-11-30 11:16 | alostale | Fixed in Version | => 3.0PR19Q1 |
2018-11-30 15:06 | alostale | Relationship added | related to 0039725 |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108500 |
Copyright © 2000 - 2009 MantisBT Group |