[MGNLUI-3875] Failing tests with Java 8 Created: 04/May/16  Updated: 09/Feb/17  Resolved: 19/May/16

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.5
Fix Version/s: 5.5

Type: Bug Priority: Neutral
Reporter: Maxime Michel Assignee: Espen Jervidalo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
depends upon MAGNOLIA-6665 Update cglib to 3.2.2 Closed
is depended upon by MAGNOLIA-6645 Update platform to java8 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Basel 44
Story Points: 2

 Description   

When doing mvn clean test using 1.8 javaVersion in pom.xml, the following occurs:

Results :

Tests in error:
  SelectFieldOptionDefinitionKeyGeneratorTest.testOptionsInSelectField:103 » IllegalArgument
  SelectFieldOptionDefinitionKeyGeneratorTest.testOptionsInSwitchableField:143 » IllegalArgument

We should try to find a fix to that, otherwise get rid of the deprecated method use, as suggested by Espen.



 Comments   
Comment by Espen Jervidalo [ 04/May/16 ]

Removing the following deprecated code from SelectFieldOptionDefinition fixes the tests:

implements Comparable<SelectFieldOptionDefinition>
SelectFieldOptionDefinition#compareTo
Generated at Mon Feb 12 09:10:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.