Commits

Alek Mierzwicki committed 2270e0c

JRADEV-14859 Fixed NoSuchFieldError

  • Participants
  • Parent commits f938098

Comments (0)

Files changed (1)

File src/main/java/com/atlassian/jira/nimblefunctests/framework/NimbleFuncTestCase.java

 			ftc.assertions = this.assertions;
 			ftc.text = this.text;
 			ftc.parse = this.parse;
-			ftc.log = new FuncTestLogger(this.log);
+			try {
+				// type of log field has changed (package refactor) - we need to get this field by name
+				ftc.log = new FuncTestLogger(this.getClass().getField("log").get(this));
+			} catch (Exception e) {
+				throw new RuntimeException(e);
+			}
 			ftc.locator = this.locator;
 		}