Skip to content

Passed

org.appng.maven.plugin.mojo.GenerateBeanOptionsMojoTest.generationTest

Took 0.78 sec.

Standard Output

[info] generate bean options for [/var/lib/jenkins/workspace/appNG_1.25.x/appng-maven-plugin/src/test/resources/poms/bean-options/application-home/conf, org.appng.test.constants, /var/lib/jenkins/workspace/appNG_1.25.x/appng-maven-plugin/target/generated-test-sources/constants]
[debug] delta: true
[debug] incremental: false

Standard Error

package org.appng.test.constants;

import org.appng.api.Options;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;

public class BeanWithOptionsOptions {

	public @AllArgsConstructor(access = AccessLevel.PRIVATE) static class Option {
		private final org.appng.api.Option inner;
		private final String name;
		public @Override String toString() { return inner.getString(name);}
		public Boolean toBoolean() { return inner.getBoolean(name);}
		public Integer toInt() { return inner.getInteg
...[truncated 383 chars]...
ublic @AllArgsConstructor(access = AccessLevel.PRIVATE) static class opt2 { public final Option answer;}

	public final opt1 opt1;
	public final opt2 opt2;

	private BeanWithOptionsOptions(Options options) {
		opt1 =  new opt1(new Option(options.getOption("opt1"),"foo"), new Option(options.getOption("opt1"),"lore"));
		opt2 =  new opt2(new Option(options.getOption("opt2"),"answer"));
	}

	public static BeanWithOptionsOptions of(Options options) { return new BeanWithOptionsOptions(options); }
}