We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39203d8 commit 68d720aCopy full SHA for 68d720a
jdi-light-angular-tests/src/main/java/io/github/com/pages/NewAngularPage.java
@@ -6,14 +6,15 @@
6
7
import java.lang.reflect.Field;
8
9
+import static com.epam.jdi.light.common.Exceptions.runtimeException;
10
import static com.epam.jdi.light.elements.pageobjects.annotations.objects.FillFromAnnotationRules.fieldHasAnnotation;
11
12
public abstract class NewAngularPage extends WebPage implements ISetup {
13
protected String pageLink = "";
14
@Override
15
public void setup(Field field) {
16
if (!fieldHasAnnotation(field, Url.class, NewAngularPage.class)) {
- throw new RuntimeException("AngularPage does not have an Url annotation.");
17
+ throw runtimeException("AngularPage does not have an Url annotation.");
18
}
19
pageLink = field.getAnnotation(Url.class).value().substring(1);
20
0 commit comments