2015-12-09 14:34:41 +01:00
|
|
|
package org.gcube.portlet.user.userstatisticsportlet.client;
|
|
|
|
|
2016-08-03 16:26:49 +02:00
|
|
|
import static org.junit.Assert.assertTrue;
|
2015-12-09 14:34:41 +01:00
|
|
|
|
2016-08-03 16:26:49 +02:00
|
|
|
import org.gcube.portlet.user.userstatisticsportlet.server.ServerUtils;
|
2015-12-09 14:34:41 +01:00
|
|
|
import org.gcube.portlet.user.userstatisticsportlet.server.UserStatisticsServiceImpl;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class TestForDeploy {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testUserIsTestUser() {
|
2016-08-03 16:26:49 +02:00
|
|
|
String username = ServerUtils.getDevelopmentUser();
|
2015-12-09 14:34:41 +01:00
|
|
|
System.out.println("username for deploy is: " + username);
|
2016-11-10 23:14:36 +01:00
|
|
|
assertTrue(username.compareTo(UserStatisticsServiceImpl.TEST_USER) == 0);
|
2015-12-09 14:34:41 +01:00
|
|
|
System.out.println("Test OK!");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|