Permalink
Browse files

Added user test

  • Loading branch information...
No3x committed Jan 10, 2019
1 parent 64c6a1e commit 8e18e54eafd1a6374a0b053575150c2ad4566972
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/test/java/com/cloudcomputing/docker/limits/model/userrole/UserTest.java
@@ -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.