@@ -0,0 +1,2037 @@
+/*%0A * Copyright 2017, TeamDev Ltd. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage org.spine3.test;%0A%0Aimport com.google.protobuf.Message;%0Aimport org.spine3.server.aggregate.Aggregate;%0Aimport org.spine3.server.aggregate.AggregateBuilder;%0Aimport org.spine3.server.entity.Entity;%0Aimport org.spine3.server.entity.EntityBuilder;%0A%0A/**%0A * Utility class for building test objects.%0A *%0A * @author Alexander Yevsyukov%0A */%0Apublic class Given %7B%0A%0A    private Given() %7B%0A        // Prevent instantiation of this utility class.%0A    %7D%0A%0A    public static %3CE extends Entity%3CI, S%3E, I, S extends Message%3E%0A    EntityBuilder%3CE, I, S%3E entityOfClass(Class%3CE%3E entityClass) %7B%0A        final EntityBuilder%3CE, I, S%3E result = new EntityBuilder%3C%3E();%0A        result.setResultClass(entityClass);%0A        return result;%0A    %7D%0A%0A    public static %3CA extends Aggregate%3CI, S, ?%3E, I, S extends Message%3E%0A           AggregateBuilder%3CA, I, S%3E aggregateOfClass(Class%3CA%3E aggregateClass) %7B%0A        final AggregateBuilder%3CA, I, S%3E result = new AggregateBuilder%3C%3E();%0A        result.setResultClass(aggregateClass);%0A        return result;%0A    %7D%0A%7D%0A

Add wrapper class (`Given`) for creating test object builders