Aurélien Pupier created CAMEL-27598:
---------------------------------------
Summary: Fix flaky test ArchitectureViewTest
Key: CAMEL-27598
URL: https://issues.apache.org/jira/browse/CAMEL-27598
Project: Camel
Issue Type: Test
Components: camel-jbang
Affects Versions: 4.24.0
Reporter: Aurélien Pupier
[flaky 42 times in lats
month|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*ArchitectureViewTest]
flakiness increased around the 12th November
{noformat}
org.opentest4j.AssertionFailedError: the first group is selected ==> expected:
<group:billing> but was: <null>
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1210)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.showsGroupsWithTheirFacts(ArchitectureViewTest.java:146)
{noformat}
{noformat}
org.opentest4j.AssertionFailedError: expected: <Order taking> but was:
<billing>
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1199)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.enterGoesDownToTheTopologyWithTheGroup(ArchitectureViewTest.java:171)
{noformat}
{noformat}
org.opentest4j.AssertionFailedError: expected: <1> but was: <0>
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:569)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.enterGoesDownToTheTopologyWithTheGroup(ArchitectureViewTest.java:170)
{noformat}
{noformat}
java.lang.NullPointerException: Cannot read field "totalHeight" because
"this.layout" is null
at
org.apache.camel.dsl.jbang.core.commands.tui.diagram.TopologyDiagramWidget.getTotalRows(TopologyDiagramWidget.java:420)
at
org.apache.camel.dsl.jbang.core.commands.tui.DiagramSupport.renderNativeDiagram(DiagramSupport.java:1125)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureView.render(ArchitectureView.java:653)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureView.render(ArchitectureView.java:611)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.render(ArchitectureViewTest.java:138)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.render(ArchitectureViewTest.java:132)
at
org.apache.camel.dsl.jbang.core.commands.tui.ArchitectureViewTest.technicalViewShowsEntryPointsAndSystems(ArchitectureViewTest.java:191)
{noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)