package org.javers.spring.integration;

import org.javers.core.Javers;
import org.javers.core.model.DummyUser;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import static org.fest.assertions.api.Assertions.assertThat;

/**
 * @author Pawel Cierpiatka
 */
@RunWith(SpringJUnit4ClassRunner.class)

public class JaversSpringTest {




}

@@ -500,43 +500,337 @@
 ss)%0A
-%0Apublic class JaversSpringTest %7B%0A%0A%0A%0A
+@ContextConfiguration(locations = %7B%22classpath:applicationContext-Test.xml%22%7D)%0Apublic class JaversSpringTest %7B%0A%0A    @Autowired%0A    private Javers javers;%0A%0A    @Test%0A    public void shouldAutowiredJavers() %7B%0A%0A        //then%0A        assertThat(javers).isNotNull();%0A        assertThat(javers.isManaged(DummyUser.class)).isTrue();%0A    %7D
 %0A%7D%0A

revert spring test