Fix checkstyle errors
This commit is contained in:
@@ -26,16 +26,11 @@ public class Application extends javafx.application.Application {
|
|||||||
* @param url which is being loaded.
|
* @param url which is being loaded.
|
||||||
* @return parent object.
|
* @return parent object.
|
||||||
*/
|
*/
|
||||||
public static Parent load(java.net.URL url) {
|
public static Parent load(java.net.URL url) throws IOException {
|
||||||
FXMLLoader loader = new FXMLLoader();
|
FXMLLoader loader = new FXMLLoader();
|
||||||
loader.setControllerFactory(springContext::getBean);
|
loader.setControllerFactory(springContext::getBean);
|
||||||
loader.setLocation(url);
|
loader.setLocation(url);
|
||||||
try {
|
return loader.load();
|
||||||
return loader.load();
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ package greenify.common;
|
|||||||
// The motivation for its use is that communication between processes is usually done
|
// The motivation for its use is that communication between processes is usually done
|
||||||
// resorting to remote interfaces (e.g., web services), where each call is an expensive operation.
|
// resorting to remote interfaces (e.g., web services), where each call is an expensive operation.
|
||||||
public class UserDto {
|
public class UserDto {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import greenify.common.ErrorResponse;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
import greenify.common.ErrorResponse;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class ErrorResponseTest {
|
public class ErrorResponseTest {
|
||||||
@Test
|
@Test
|
||||||
public void setAndGetTest() {
|
public void setAndGetTest() {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import greenify.common.UserDto;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
|
import greenify.common.UserDto;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
public class UserDtoTest {
|
public class UserDtoTest {
|
||||||
@Test
|
@Test
|
||||||
public void setAndGetTest() {
|
public void setAndGetTest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user