提交 2a78c10b 编写于 作者: K Kohsuke Kawaguchi

Updating tests to fix more regressions

上级 28710f78
......@@ -224,6 +224,7 @@ public class MyViewsPropertyTest {
@Test
public void testCheckPermission() throws IOException {
rule.jenkins.setSecurityRealm(rule.createDummySecurityRealm());
User user = User.get("User");
User user2 = User.get("User2");
MyViewsProperty property = new MyViewsProperty(Messages.Hudson_ViewName());
......@@ -260,6 +261,7 @@ public class MyViewsPropertyTest {
@Test
public void testHasPermission() throws IOException {
rule.jenkins.setSecurityRealm(rule.createDummySecurityRealm());
User user = User.get("User");
User user2 = User.get("User2");
MyViewsProperty property = new MyViewsProperty(Messages.Hudson_ViewName());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册