fix commit
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user