package fi.vincit.multiusertest;

import fi.vincit.multiusertest.annotation.TestUsers;
import fi.vincit.multiusertest.configuration.ConfiguredTest;
import fi.vincit.multiusertest.runner.junit.framework.BlockMultiUserTestClassRunner;
import fi.vincit.multiusertest.runner.junit.MultiUserTestRunner;

import org.junit.Test;
import org.junit.runner.RunWith;

@TestUsers(creators = {"role:ROLE_ADMIN", "role:ROLE_USER"},
        users = {"role:ROLE_ADMIN", "role:ROLE_USER"},
        runner = BlockMultiUserTestClassRunner.class)
@RunWith(MultiUserTestRunner.class)
public class IgnoreMethodTest extends ConfiguredTest {


    @Test
    @TestUsers(creators = {"role:ROLE_ADMIN"})
    public void runCreatorAdmin() {
    }

    @Test
    @TestUsers(users = {"role:ROLE_USER"})
    public void runUserIsUser() {
    }

    @Test
    @TestUsers(users = {"role:ROLE_ADMIN"}, creators = {"role:ROLE_ADMIN"})
    public void runUserAdminAndCreatorAdmin() {
    }

    @Test
    @TestUsers(users = {"role:ROLE_USER"}, creators = {"role:ROLE_ADMIN"})
    public void runUserUserAndCreatorAdmin() {
    }

}

@@ -25,24 +25,170 @@
 sertest;%0D%0A%0D%0A
+import static org.hamcrest.core.Is.is;%0D%0Aimport static org.junit.Assert.assertThat;%0D%0A%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0A%0D%0A
 import fi.vi
@@ -339,23 +339,8 @@
 nit.
-framework.Block
 Mult
@@ -344,29 +344,24 @@
 ultiUserTest
-Class
 Runner;%0D%0Aimp
@@ -393,32 +393,47 @@
 st.runner.junit.
+framework.Block
 MultiUserTestRun
@@ -421,32 +421,37 @@
 ockMultiUserTest
+Class
 Runner;%0D%0A%0D%0Aimpor
@@ -447,65 +447,48 @@
 r;%0D%0A
-%0D%0A
 import 
-org.junit.Test;%0D%0Aimport org.junit.runner.RunWith
+fi.vincit.multiusertest.util.User
 ;%0D%0A%0D
@@ -756,18 +756,16 @@
 st %7B%0D%0A%0D%0A
-%0D%0A
     @Tes
@@ -844,32 +844,97 @@
 eatorAdmin() %7B%0D%0A
+        assertThat(getCreatorRole(), is(User.Role.ROLE_ADMIN));%0D%0A
     %7D%0D%0A%0D%0A    @Te
@@ -1012,24 +1012,85 @@
 IsUser() %7B%0D%0A
+        assertThat(getUserRole(), is(User.Role.ROLE_USER));%0D%0A
     %7D%0D%0A%0D%0A   
@@ -1215,32 +1215,159 @@
 eatorAdmin() %7B%0D%0A
+        assertThat(getUserRole(), is(User.Role.ROLE_ADMIN));%0D%0A        assertThat(getCreatorRole(), is(User.Role.ROLE_ADMIN));%0D%0A
     %7D%0D%0A%0D%0A    @Te
@@ -1490,24 +1490,349 @@
 rAdmin() %7B%0D%0A
+        assertThat(getCreatorRole(), is(User.Role.ROLE_ADMIN));%0D%0A        assertThat(getUserRole(), is(User.Role.ROLE_USER));%0D%0A    %7D%0D%0A%0D%0A    @Test%0D%0A    @TestUsers(users = %7B%22role:ROLE_VISITOR%22%7D, creators = %7B%22role:ROLE_VISITOR%22%7D)%0D%0A    public void neverRun() %7B%0D%0A        throw new AssertionError(%22Should never call this method%22);%0D%0A
     %7D%0D%0A%0D%0A%7D%0D%0A

Add assertions to IgnoreMethodTest