Skip to content

Commit af002a6

Browse files
committed
Fix violations
1 parent 322a07b commit af002a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/Dialog.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.epam.jdi.light.vuetify.elements.common.VuetifyButton;
99
import com.epam.jdi.light.vuetify.interfaces.HasTheme;
1010

11+
import static com.epam.jdi.light.common.Exceptions.runtimeException;
1112
import static org.openqa.selenium.Keys.ESCAPE;
1213

1314
/**
@@ -79,7 +80,7 @@ public void close() {
7980
dialogWindow().focus();
8081
press(ESCAPE);
8182
} else {
82-
throw new RuntimeException("Dialog cannot be closed by pressing esc key");
83+
throw runtimeException("Dialog cannot be closed by pressing esc key");
8384
}
8485
}
8586

jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/bars/AppBar.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.epam.jdi.light.vuetify.asserts.bars.AppBarAssert;
66
import com.epam.jdi.light.vuetify.elements.common.Image;
77

8+
import static com.epam.jdi.light.common.Exceptions.runtimeException;
89
import static com.epam.jdi.light.driver.WebDriverFactory.jsExecute;
910

1011
/**
@@ -33,7 +34,7 @@ public Image backgroundImage() {
3334
if (hasBackgroundImage()) {
3435
return new Image().setCore(Image.class, core().find(IMAGE_LOCATOR));
3536
} else {
36-
throw new RuntimeException("Element doesn't have image");
37+
throw runtimeException("Element doesn't have image");
3738
}
3839
}
3940

0 commit comments

Comments
 (0)