Skip to content

Commit

Permalink
Added user test
Browse files Browse the repository at this point in the history
  • Loading branch information
No3x committed Jan 10, 2019
1 parent 64c6a1e commit 8e18e54
Showing 1 changed file with 24 additions and 0 deletions.
@@ -0,0 +1,24 @@
package com.cloudcomputing.docker.limits.model.userrole;

import com.cloudcomputing.docker.limits.services.users.UserRoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;


@RunWith(SpringRunner.class)
public class UserTest {

@Test
public void testProperties() {
User user = new User();
user.username = UserRoleService.CZOELLER;
user.userRole = Role.HSB_STUDENT;

assertThat(user.username).isEqualTo(UserRoleService.CZOELLER);
assertThat(user.userRole).isEqualTo(Role.HSB_STUDENT);
}

}

0 comments on commit 8e18e54

Please sign in to comment.