Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2021-01-18 09:592021-01-18 11:40
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in VersionPR21Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0045740: RuntimeModelTest.testIsParent/testisParent2 hides details of wrong defined columns under isDebug

DescriptionThose test cases show following output when they detect a wrongly defined column:

expected:<0> but was:<1>

Details about which column that is about is not shown at all (unless log4j debug level is enabled).

That makes it very impractical to find and fix the problem.

Instead info from debug output should be directly added to the assertion.
Steps To Reproduce-
Proposed SolutionInstead info from debug output should be directly added to the assertion to show similar to this:

java.lang.AssertionError: 1 columns set as *isParent* and are *primitive type*: [C_Order - EM_OBGM_c_bpartner_taxid] expected:<0> but was:<1>
    at org.junit.Assert.failNotEquals(
    at org.junit.Assert.assertEquals(
    at org.openbravo.test.model.RuntimeModelTest.testIsParent2(
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
hgbot (developer)
2021-01-18 10:25

Merge Request created: [^]
hgbot (developer)
2021-01-18 11:40

Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: ad7f74cabc4bf4a1517b2d4f47124ccc6bd59889
Author: Stefan Huehner <>
Date: 2021-01-18T10:20:38+01:00
URL: [^]

Fixes ISSUE-45740. Improve test case output for better unterstanding.

Testcase did not show location of the problem in its output but only
behind log4j.isDebug. Move details of the problem directly into the
assert output for immediate feedback to the developer.

M src-test/src/org/openbravo/test/model/
hgbot (developer)
2021-01-18 11:40

Merge request merged: [^]

- Issue History
Date Modified Username Field Change
2021-01-18 09:59 shuehner New Issue
2021-01-18 09:59 shuehner Assigned To => shuehner
2021-01-18 09:59 shuehner Modules => Core
2021-01-18 09:59 shuehner Triggers an Emergency Pack => No
2021-01-18 10:25 hgbot Note Added: 0125489
2021-01-18 11:40 hgbot Resolution open => fixed
2021-01-18 11:40 hgbot Status new => closed
2021-01-18 11:40 hgbot Fixed in Version => PR21Q2
2021-01-18 11:40 hgbot Note Added: 0125495
2021-01-18 11:40 hgbot Note Added: 0125496

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker