Manual testing
Manual testing¶
Assume this entity and listener:
@Entity
@Table(name = "person")
public class Person {
// ...
}
@UponInserting(entity = Person.class)
public void inserted(Person person) {
System.out.println("Person inserted: " + person.getEmail());
}
Start your Spring Boot application. Tentacolous should print logs similar to:
Tentacolous registered 1 listener method(s)
Initializing Tentacolous schema using event table 'db_change_event'
Creating Tentacolous INSERT trigger for table 'person' and entity 'Person'
Starting Tentacolous poller
Then run this SQL in PostgreSQL:
You should see this in your application console:
Inspect events and triggers with: