File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
jdi-light-angular-tests/src/main/java/io/github/com/pages Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import java .lang .reflect .Field ;
8
8
9
+ import static com .epam .jdi .light .common .Exceptions .runtimeException ;
9
10
import static com .epam .jdi .light .elements .pageobjects .annotations .objects .FillFromAnnotationRules .fieldHasAnnotation ;
10
11
11
12
public abstract class NewAngularPage extends WebPage implements ISetup {
12
13
protected String pageLink = "" ;
13
14
@ Override
14
15
public void setup (Field field ) {
15
16
if (!fieldHasAnnotation (field , Url .class , NewAngularPage .class )) {
16
- throw new RuntimeException ("AngularPage does not have an Url annotation." );
17
+ throw runtimeException ("AngularPage does not have an Url annotation." );
17
18
}
18
19
pageLink = field .getAnnotation (Url .class ).value ().substring (1 );
19
20
}
You can’t perform that action at this time.
0 commit comments