Skip to content
Snippets Groups Projects
Commit 079a9052 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#505 - fixed selenium tests

parent 25a5fab0
No related branches found
No related tags found
No related merge requests found
Pipeline #3687 passed
......@@ -92,7 +92,7 @@ public class TemplateController extends BaseController
public String requestDeleteTemplate(Model model, @PathVariable("ID") Integer ID)
{
final Optional<Template> templateOptional = templateService.getRepository().findById(ID);
if(!templateOptional.isPresent())
if(templateOptional.isEmpty())
{
throw new ResourceNotFoundException();
}
......@@ -116,7 +116,7 @@ public class TemplateController extends BaseController
@PathVariable("ID") Integer ID)
{
final Optional<Template> templateOptional = templateService.getRepository().findById(ID);
if(!templateOptional.isPresent())
if(templateOptional.isEmpty())
{
throw new ResourceNotFoundException();
}
......@@ -207,7 +207,7 @@ public class TemplateController extends BaseController
public String editTemplate(Model model, @PathVariable("ID") Integer ID)
{
Optional<Template> templateOptional = templateService.getRepository().findById(ID);
if(!templateOptional.isPresent())
if(templateOptional.isEmpty())
{
throw new ResourceNotFoundException();
}
......
......@@ -7,8 +7,6 @@ spring.jpa.properties.jadira.usertype.autoRegisterUserTypes = true
spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB
server.ssl.enabled-protocols=TLSv1.2
logging.level.root=INFO
#logging.level.org.springframework=ERROR
logging.level.de.deadlocker8=DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment