Integer-свойства#
package org.my.pack;
import ru.tinkoff.qa.neptune.core.api.properties.PropertyName;
import ru.tinkoff.qa.neptune.core.api.properties.integers.IntValuePropertySupplier;
@PropertyName("MY_PROPERTY")
public class MyIntegerProperty implements IntValuePropertySupplier {
public static final MyIntegerProperty PROPERTY = new MyIntegerProperty();
}
MY_PROPERTY=2
package org.my.pack;
import static org.my.pack.MyIntegerProperty.PROPERTY;
public class MyUseCase {
public void useCase() {
//чтение
Integer value = PROPERTY.get();
}
}