fix commit

This commit is contained in:
-
2019-04-07 23:06:52 -06:00
parent 5479130178
commit 56aa561d68
6 changed files with 8 additions and 7 deletions
@@ -9,8 +9,9 @@ import javax.validation.constraints.NotBlank;
@Setter @Setter
public class Theorem { public class Theorem {
private String theoremName1 ; private String theoremName1 ;
private String theoremName2 ; private String theoremName2 ;
@NotBlank(message = "Theorem name must not be blank") private String theoremName;
private String theorem; // @NotBlank(message = "Theorem name must not be blank") private String theoremName;
} }
+1 -1
View File
@@ -4,7 +4,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Theroem Page</title> <title>Theorem Page</title>
</head> </head>
<body> <body>
<form action="" method="post"> <form action="" method="post">
+1 -1
View File
@@ -8,7 +8,7 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html> <html>
<head> <head>
<title>$Title$</title> <title>abc</title>
</head> </head>
<body> <body>
$END$ $END$
@@ -32,7 +32,7 @@ public class TheoremEntryControllerTest {
assertEquals("Theorem",modelAndView.getViewName()); assertEquals("Theorem",modelAndView.getViewName());
} }
@Test @Test
public void saveTheorem(){ public void saveTheorem(){
final ModelAndView modelAndView= theoremEntryController.enterTheoremPage(); final ModelAndView modelAndView= theoremEntryController.enterTheoremPage();
@@ -40,6 +40,6 @@ public class TheoremEntryControllerTest {
assertNotNull(modelAndView); assertNotNull(modelAndView);
assertEquals("Theorem",modelAndView.getViewName()); assertEquals("Theorem",modelAndView.getViewName());
} }
//
} }