/*
 * Copyright 2020, TeamDev. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package io.spine.test.client;

import io.spine.core.UserId;
import io.spine.server.BoundedContext;
import io.spine.server.BoundedContextBuilder;
import io.spine.test.client.command.LogInUser;
import io.spine.testing.core.given.GivenUserId;

/**
 * Configures Bounded Context for the purpose of {@link io.spine.client.ClientTest}.
 */
public final class ClientTestContext {

    static final String NAME = "ClientTest";

    /**
     * The ID of the user which causes error when posting {@link LogInUser} command.
     *
     * @see #rejectingFilter()
     */
    public static final UserId INVALID_USER = GivenUserId.of("invalid-user");

    /** Prevents instantiation of this configuration class. */
    private ClientTestContext() {
    }

    public static BoundedContextBuilder builder() {
        return BoundedContext.singleTenant(NAME)
                             .add(LoginProcess.class)
                             .add(new ActiveUsersProjection.Repository());
    }
}

@@ -1041,37 +1041,8 @@
 t;%0A%0A
-import io.spine.core.UserId;%0A
 impo
@@ -1125,103 +1125,8 @@
 der;
-%0Aimport io.spine.test.client.command.LogInUser;%0Aimport io.spine.testing.core.given.GivenUserId;
 %0A%0A/*
@@ -1306,226 +1306,8 @@
 %22;%0A%0A
-    /**%0A     * The ID of the user which causes error when posting %7B@link LogInUser%7D command.%0A     *%0A     * @see #rejectingFilter()%0A     */%0A    public static final UserId INVALID_USER = GivenUserId.of(%22invalid-user%22);%0A%0A
     

Remove unused constant