@@ -0,0 +1,2756 @@
+/*%0A * Copyright (C) 2013 tarent AG%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining%0A * a copy of this software and associated documentation files (the%0A * %22Software%22), to deal in the Software without restriction, including%0A * without limitation the rights to use, copy, modify, merge, publish,%0A * distribute, sublicense, and/or sell copies of the Software, and to%0A * permit persons to whom the Software is furnished to do so, subject to%0A * the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be%0A * included in all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND,%0A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF%0A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.%0A * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY%0A * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,%0A * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE%0A * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0A%0Apackage org.osiam.client;%0A%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.util.UUID;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.osiam.client.exception.NoResultException;%0Aimport org.osiam.resources.scim.User;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.TestExecutionListeners;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.support.DependencyInjectionTestExecutionListener;%0A%0Aimport com.github.springtestdbunit.DbUnitTestExecutionListener;%0Aimport com.github.springtestdbunit.annotation.DatabaseOperation;%0Aimport com.github.springtestdbunit.annotation.DatabaseSetup;%0Aimport com.github.springtestdbunit.annotation.DatabaseTearDown;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(%22/context.xml%22)%0A@TestExecutionListeners(%7B DependencyInjectionTestExecutionListener.class,%0A        DbUnitTestExecutionListener.class %7D)%0A@DatabaseSetup(value = %22/database_seed.xml%22)%0A@DatabaseTearDown(value = %22/database_tear_down.xml%22, type = DatabaseOperation.DELETE_ALL)%0Apublic class ReplaceUserServiceIT extends AbstractIntegrationTestBase %7B%0A%0A    private static final String USER_NAME_EXISTING_USER = %22hsimpson%22;%0A%0A    private String NOT_EXISTING_ID = UUID.randomUUID().toString();%0A%0A    @Test(expected = NoResultException.class)%0A    public void replace_user_which_not_existing_raises_exception() %7B%0A        User patchedUser = new User.Builder(USER_NAME_EXISTING_USER).build();%0A        oConnector.replaceUser(NOT_EXISTING_ID, patchedUser, accessToken);%0A        fail(%22Exception expected%22);%0A    %7D%0A%0A%0A%7D%0A

add replace user test class to 'verify' BT-42