@@ -202,24 +202,61 @@ public class ServiceRepoServiceTest {
// // org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [HikariPool-1 - Connection is not available, request timed out after 30000ms.]
// Service updatedService = serviceRepoService.findByUuid(id);
// Set<Note> noteList = updatedService.getNote();
//
// boolean expectedNoteExists = false;
// for (Note n : noteList) {
// if ( n.getText().equals("NS Resource LCM Changed") && n.getAuthor().equals("SIM638-API")) {
// expectedNoteExists= true;
// break;
// }
// }
// assertThat( expectedNoteExists ).isTrue();
// }
// // org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [HikariPool-1 - Connection is not available, request timed out after 30000ms.]
if(n.getText().contains("State Changed with status:")&&n.getAuthor().equals("SIM638-API")){
expectedNoteExists=true;
break;
}
...
...
@@ -228,43 +265,6 @@ public class ServiceRepoServiceTest {
}
// // org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [HikariPool-1 - Connection is not available, request timed out after 30000ms.]