@@ -0,0 +1,2012 @@
+/*%0A * Copyright 2016 EuregJUG.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage eu.euregjug.site.events;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestDatabase;%0Aimport static org.springframework.boot.test.autoconfigure.orm.jpa.AutoConfigureTestDatabase.Replace.NONE;%0Aimport org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0A/**%0A * @author Michael J. Simons, 2016-08-25%0A */%0A@RunWith(SpringRunner.class)%0A@DataJpaTest%0A@AutoConfigureTestDatabase(replace = NONE)%0A@ActiveProfiles(%22it%22)%0Apublic class RegistrationRepositoryIT %7B%0A    %0A    @Autowired%0A    private EventRepository eventRepository;%0A    %0A    @Autowired%0A    private RegistrationRepository registrationRepository;%0A    %0A    @Test%0A    public void idGeneratorsShouldWorkWithPostgreSQLAsExpected() %7B%0A        // data-id.sql creates on registration with id %221%22%0A        final EventEntity event = this.eventRepository.findOne(1).get();%0A        final RegistrationEntity savedRegistration = this.registrationRepository.save(new RegistrationEntity(event, %22foo@bar.baz%22, %22idGeneratorsShouldWorkWithPostgreSQLAsExpected%22, null, true));%0A        Assert.assertThat(savedRegistration.getId(), is(2));%0A    %7D%0A%7D%0A

Add the actual integration test