package com.izouma.nineth;


import com.izouma.nineth.domain.TestClass;
import com.izouma.nineth.repo.TestClassRepo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class TestClassTest extends ApplicationTests {
    @Autowired
    private TestClassRepo testClassRepo;

    @Test
    public void testDynamicUpdate() {
        TestClass a = new TestClass();
        a.setName("name");
        testClassRepo.save(a);

        a.setColumnA("a");
        testClassRepo.save(a);

        a.setColumnA(null);
        testClassRepo.save(a);
    }

}