org.h2.jdbc.JdbcSQLException: Column "Salman" not found;
<p>I have tried to run the following test in my spring application.</p>

<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes=App1Application.class)
@Sql(scripts="customerTest.sql")
@DirtiesContext(classMode=ClassMode.AFTER_EACH_TEST_METHOD)

public class customerTest {


    @Autowired 
    customerRepository  customerDB;

    @Test
    public void countRecords(){

        assertThat(customerDB.count(),is(2l));

    }   
}
</code></pre>

<p>and in the <strong>customerTest.sql</strong> file i have:</p>

<pre><code>insert into customer(id,name,lastname) values(1,"name","lastname");
</code></pre>

<p>here is my <strong>customer</strong> class</p>

<pre><code>@Entity
@Data

public class customer {

    @Id
    @GeneratedValue
    int id;

    String name;
    String lastname;
    }
</code></pre>

<p>and i use <strong>jpa</strong> too:</p>

<pre><code>public interface customerRepository  extends JpaRepository&lt;customer,Long&gt;{

}
</code></pre>

<p>The problem is, when i run the test i face with the error:</p>

<pre><code> org.h2.jdbc.JdbcSQLException: Column "Salman" not found; SQL statement:
insert into customer(id,name,lastname) values(1,"name","lastname")
</code></pre>

<p>Meanwhile "Salman" is a value and not a column?</p>

<p>Please pay attention, i am using spring-mvc so there is <strong>no Database</strong>
I have only my models (<code>customer</code>) made by code.</p>