@@ -0,0 +1,1060 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/. */%0A%0Apackage org.ocelotds.security.impl;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.slf4j.Logger;%0A%0A/**%0A *%0A * @author hhfrancois%0A */%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class WildflySubjectServicesTest %7B%0A%0A%09@Mock%0A%09private Logger logger;%0A%0A%09@InjectMocks%0A%09private WildflySubjectServices instance;%0A%0A%09/**%0A%09 * Test of getSetSubject method, of class WildflySubjectServices.%0A%09 */%0A%09@Test%0A%09public void testGetSetSubject() %7B%0A%09%09System.out.println(%22getSubject%22);%0A//%09%09Subject expResult = new Subject();%0A//%09%09Principal principal = new AnybodyPrincipal();%0A//%09%09expResult.getPrincipals().add(principal);%0A//%09%09instance.setSubject(expResult, principal);%0A//%09%09Subject result = instance.getSubject();%0A//%09%09assertThat(result).isEqualTo(expResult);%0A%09%7D%0A%0A%7D

change package