25 lines
500 B
Java
25 lines
500 B
Java
package com.plannaplan;
|
|
|
|
import java.util.List;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
import org.junit.Ignore;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
/**
|
|
* Unit test for simple App.
|
|
*/
|
|
public class AppTest {
|
|
@Autowired
|
|
private BookService bookService;
|
|
|
|
@Ignore
|
|
@Test
|
|
public void whenApplicationStarts_thenHibernateCreatesInitialRecords() {
|
|
List<Book> books = bookService.list();
|
|
|
|
Assert.assertEquals(books.size(), 1);
|
|
}
|
|
}
|