@@ -0,0 +1,1014 @@
+package com.exp.tracker.services.impl;%0A%0Aimport java.util.List;%0A%0Aimport javax.faces.model.SelectItem;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0A%0Aimport com.exp.tracker.services.api.RoleService;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(%22classpath:spring/root-applicationContext.xml%22)%0A@ActiveProfiles(%22demo%22)%0A@WebAppConfiguration%0Apublic class JpaRoleServiceTests %7B%0A%0A%09@Autowired%0A%09private RoleService roleService;%0A%09%0A%09@Test%0A%09public void roleServiceTests() %7B%0A%09%09List%3CSelectItem%3E rsi = roleService.getRolesSelectItems();%0A%09%09Assert.assertNotNull(%22Failed to get roles%22,rsi);%0A%09%09Assert.assertTrue(%22Expected exactly 3 roles%22, rsi.size() == 3);%0A%09%7D%0A%7D%0A

Fix strage test failure in Travis environment