SYMBOL INDEX (1001 symbols across 205 files) FILE: assets/next.config.js method rewrites (line 5) | async rewrites() { FILE: assets/src/__tests__/Report.test.tsx type ReportItem (line 5) | interface ReportItem { FILE: assets/src/__tests__/RoomDetails.test.tsx type RoomObject (line 6) | interface RoomObject { FILE: assets/src/app/admin/branding/page.tsx function BrandingPage (line 16) | function BrandingPage() { FILE: assets/src/app/admin/layout.tsx function postValidation (line 10) | async function postValidation(cookies: Cookies): Promise { function AdminLayout (line 30) | function AdminLayout({ FILE: assets/src/app/admin/message/page.tsx function MessagesPage (line 16) | function MessagesPage() { FILE: assets/src/app/admin/page.tsx function AdminPage (line 7) | function AdminPage() { FILE: assets/src/app/admin/report/page.tsx function ReportPage (line 16) | function ReportPage() { FILE: assets/src/app/admin/room/[id]/page.tsx function RoomDetailsPage (line 16) | function RoomDetailsPage({params}: {params: Promise<{ id: string }>}) { FILE: assets/src/app/admin/rooms/page.tsx function RoomsPage (line 16) | function RoomsPage() { FILE: assets/src/app/api/auth/login/route.ts function POST (line 4) | async function POST(request: Request) { FILE: assets/src/app/api/auth/logout/route.ts function POST (line 3) | async function POST(request: Request) { FILE: assets/src/app/api/auth/validate/route.ts function POST (line 4) | async function POST(request: Request) { FILE: assets/src/app/api/booking/[id]/route.ts function PUT (line 5) | async function PUT( function DELETE (line 59) | async function DELETE( function GET (line 99) | async function GET( FILE: assets/src/app/api/booking/route.ts function GET (line 5) | async function GET(request: Request) { function POST (line 46) | async function POST(request: Request) { FILE: assets/src/app/api/booking/summary/route.ts function GET (line 4) | async function GET(request: Request) { FILE: assets/src/app/api/branding/route.ts function GET (line 8) | async function GET() { function PUT (line 33) | async function PUT(request: Request) { FILE: assets/src/app/api/message/[id]/read/route.ts function PUT (line 5) | async function PUT( FILE: assets/src/app/api/message/[id]/route.ts function GET (line 5) | async function GET( function PUT (line 49) | async function PUT( function DELETE (line 93) | async function DELETE( FILE: assets/src/app/api/message/count/route.ts function GET (line 6) | async function GET(request: Request) { FILE: assets/src/app/api/message/route.ts function GET (line 4) | async function GET() { function POST (line 27) | async function POST(request: Request) { FILE: assets/src/app/api/report/room/[roomid]/route.ts function GET (line 4) | async function GET( FILE: assets/src/app/api/report/route.ts function GET (line 7) | async function GET() { FILE: assets/src/app/api/room/[id]/route.ts function GET (line 5) | async function GET( function DELETE (line 31) | async function DELETE( function PUT (line 74) | async function PUT( FILE: assets/src/app/api/room/route.ts function GET (line 6) | async function GET(request: Request) { function POST (line 34) | async function POST( FILE: assets/src/app/cookie/page.tsx function CookiePolicy (line 8) | function CookiePolicy() { FILE: assets/src/app/layout.tsx function RootLayout (line 10) | function RootLayout({ FILE: assets/src/app/page.tsx function Home (line 13) | function Home() { FILE: assets/src/app/privacy/page.tsx function PrivacyPolicy (line 8) | function PrivacyPolicy() { FILE: assets/src/app/reservation/[id]/page.tsx function Reservation (line 18) | function Reservation({params}: {params: Promise<{ id: string }>}) { FILE: assets/src/components/Footer.tsx type FooterProps (line 7) | interface FooterProps { FILE: assets/src/components/HomeNav.tsx type NavProps (line 5) | interface NavProps { FILE: assets/src/components/admin/AdminBooking.tsx type AdminBookingProps (line 7) | interface AdminBookingProps { type Room (line 16) | interface Room { FILE: assets/src/components/admin/BookingListing.tsx type BookingListingProps (line 13) | interface BookingListingProps { FILE: assets/src/components/admin/BookingListings.tsx type BookingListingsProps (line 5) | interface BookingListingsProps { FILE: assets/src/components/admin/Login.tsx type LoginProps (line 4) | interface LoginProps { FILE: assets/src/components/admin/Message.tsx type MessageProps (line 4) | interface MessageProps { type MessageDetails (line 10) | interface MessageDetails { FILE: assets/src/components/admin/MessageList.tsx type MessageProps (line 4) | interface MessageProps { FILE: assets/src/components/admin/Nav.tsx type NavProps (line 6) | interface NavProps { FILE: assets/src/components/admin/Notification.tsx type NotificationProps (line 4) | interface NotificationProps { FILE: assets/src/components/admin/Report.tsx type ReportProps (line 8) | interface ReportProps { type BookingDates (line 12) | interface BookingDates { type ReportEvent (line 18) | interface ReportEvent { FILE: assets/src/components/admin/RoomDetails.tsx type RoomDetailsProps (line 4) | interface RoomDetailsProps { type RoomState (line 8) | interface RoomState { FILE: assets/src/components/admin/RoomForm.tsx type RoomFormProps (line 3) | interface RoomFormProps { type RoomData (line 7) | interface RoomData { FILE: assets/src/components/admin/RoomListing.tsx type RoomListingProps (line 5) | interface RoomListingProps { FILE: assets/src/components/home/Availability.tsx function Availability (line 18) | function Availability() { FILE: assets/src/components/home/HotelContact.tsx type ContactDetails (line 4) | interface ContactDetails { type HotelContactProps (line 11) | interface HotelContactProps { type ContactForm (line 15) | interface ContactForm { FILE: assets/src/components/home/HotelLogo.tsx type HotelLogoProps (line 4) | interface HotelLogoProps { FILE: assets/src/components/home/HotelMap.tsx type HotelMapProps (line 8) | interface HotelMapProps { FILE: assets/src/components/home/HotelRoomInfo.tsx type HotelRoomInfoProps (line 5) | interface HotelRoomInfoProps { FILE: assets/src/components/reservation/BookingForm.tsx type RoomDetailsProps (line 10) | interface RoomDetailsProps { type Event (line 14) | interface Event { FILE: assets/src/components/reservation/Breadcrumb.tsx type BreadcrumbProps (line 4) | interface BreadcrumbProps { FILE: assets/src/components/reservation/RoomDetails.tsx type RoomDetailsProps (line 6) | interface RoomDetailsProps { FILE: assets/src/components/reservation/SimilarRooms.tsx type SimilarRoomsProps (line 3) | interface SimilarRoomsProps { FILE: assets/src/types/availability.d.ts type Availability (line 1) | interface Availability { FILE: assets/src/types/booking.d.ts type Booking (line 1) | interface Booking { FILE: assets/src/types/branding.d.ts type Branding (line 1) | interface Branding { FILE: assets/src/types/react-big-calendar.d.ts type Event (line 4) | interface Event { type SlotInfo (line 12) | interface SlotInfo { type CalendarProps (line 19) | interface CalendarProps { FILE: assets/src/types/room.d.ts type Room (line 1) | interface Room { FILE: auth/src/main/java/com/automationintesting/api/AuthApplication.java class AuthApplication (line 7) | @SpringBootApplication method main (line 11) | public static void main(String[] args) { FILE: auth/src/main/java/com/automationintesting/api/AuthController.java class AuthController (line 19) | @RestController method createToken (line 25) | @RequestMapping(value = "/login", method = RequestMethod.POST) method validateToken (line 41) | @RequestMapping(value = "/validate", method = RequestMethod.POST) method clearToken (line 48) | @RequestMapping(value = "/logout", method = RequestMethod.POST) FILE: auth/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 10) | @Configuration method openAPI (line 13) | @Bean method publicApi (line 19) | @Bean FILE: auth/src/main/java/com/automationintesting/db/AuthDB.java class AuthDB (line 21) | @Component method AuthDB (line 32) | public AuthDB() throws SQLException, IOException { method insertToken (line 56) | public Boolean insertToken(Token token) throws SQLException { method queryToken (line 62) | public Token queryToken(Token token) throws SQLException { method deleteToken (line 76) | public Boolean deleteToken(Token token) throws SQLException { method queryCredentials (line 84) | public Boolean queryCredentials(Auth auth) throws SQLException { method executeSqlFile (line 95) | private void executeSqlFile(String filename) throws IOException, SQLEx... method resetDB (line 108) | public void resetDB() throws SQLException, IOException { FILE: auth/src/main/java/com/automationintesting/model/Auth.java class Auth (line 5) | public class Auth { method Auth (line 12) | public Auth(String username, String password) { method Auth (line 17) | public Auth() { method getUsername (line 20) | public String getUsername() { method getPassword (line 24) | public String getPassword() { FILE: auth/src/main/java/com/automationintesting/model/Decision.java class Decision (line 5) | public class Decision { method Decision (line 11) | public Decision(HttpStatus httpStatus) { method Decision (line 15) | public Decision(HttpStatus httpStatus, Token token) { method getStatus (line 20) | public HttpStatus getStatus() { method getToken (line 24) | public Token getToken() { FILE: auth/src/main/java/com/automationintesting/model/Token.java class Token (line 9) | public class Token { method Token (line 14) | public Token(){ method Token (line 18) | public Token(String token) { method Token (line 24) | public Token(String token, Date expiry){ method getToken (line 29) | public String getToken() { method setToken (line 33) | public void setToken(String token) { method getPreparedStatement (line 37) | public PreparedStatement getPreparedStatement(Connection connection) t... method createExpiryTimestamp (line 47) | private Date createExpiryTimestamp() { FILE: auth/src/main/java/com/automationintesting/service/AuthService.java class AuthService (line 17) | @Service method beginDbScheduler (line 23) | @EventListener(ApplicationReadyEvent.class) method verify (line 29) | public HttpStatus verify(Token token) throws SQLException { method deleteToken (line 39) | public HttpStatus deleteToken(Token token) throws SQLException { method queryCredentials (line 49) | public Decision queryCredentials(Auth auth) throws SQLException { FILE: auth/src/main/java/com/automationintesting/service/DatabaseScheduler.java class DatabaseScheduler (line 11) | public class DatabaseScheduler { method DatabaseScheduler (line 17) | public DatabaseScheduler() { method startScheduler (line 25) | public void startScheduler(AuthDB authDB, TimeUnit timeUnit){ method getResetCount (line 47) | public int getResetCount() { method stepScheduler (line 51) | public void stepScheduler() { FILE: auth/src/main/java/com/automationintesting/service/RandomString.java class RandomString (line 8) | public class RandomString { method nextString (line 13) | public String nextString() { method RandomString (line 33) | public RandomString(int length, Random random, String symbols) { method RandomString (line 44) | public RandomString(int length, Random random) { method RandomString (line 51) | public RandomString(int length) { method RandomString (line 58) | public RandomString() { FILE: auth/src/main/resources/db.sql type TOKENS (line 1) | CREATE TABLE IF NOT EXISTS TOKENS ( tokenid int NOT NULL AUTO_INCREMENT,... type ACCOUNTS (line 2) | CREATE TABLE IF NOT EXISTS ACCOUNTS ( accountid int NOT NULL AUTO_INCREM... FILE: auth/src/test/java/com/automationintesting/integration/AuthIntegrationTest.java class AuthIntegrationTest (line 18) | @ExtendWith(SpringExtension.class) method createToken (line 25) | @BeforeEach method testValidateEndpoint (line 37) | @Test method testLogoutEndpoint (line 47) | @Test FILE: auth/src/test/java/com/automationintesting/integration/example/TaskAnalysisIntegrationTest.java class TaskAnalysisIntegrationTest (line 19) | @ExtendWith(SpringExtension.class) method testLoginAPIEndpoint (line 26) | @Test FILE: auth/src/test/java/com/automationintesting/unit/db/AuthDBTest.java class AuthDBTest (line 12) | public class AuthDBTest extends BaseTest { method testStoreToken (line 14) | @Test method testQueryTokenExists (line 23) | @Test method testRemovingToken (line 33) | @Test method testQueryCredentials (line 43) | @Test method testQueryMissingCredentials (line 52) | @Test FILE: auth/src/test/java/com/automationintesting/unit/db/BaseTest.java class BaseTest (line 9) | public class BaseTest { method createRoomDB (line 15) | @BeforeAll FILE: auth/src/test/java/com/automationintesting/unit/example/TaskAnalysisTest.java class TaskAnalysisTest (line 13) | public class TaskAnalysisTest { method testTokenCreation (line 17) | @Test FILE: auth/src/test/java/com/automationintesting/unit/service/AuthServiceTest.java class AuthServiceTest (line 22) | public class AuthServiceTest { method initialiseMocks (line 31) | @BeforeEach method testValidateCredentials (line 36) | @Test method testInvalidCredentials (line 48) | @Test method testErrorVerifyingCredentials (line 58) | @Test method testTokenPositiveVerification (line 69) | @Test method testTokenNegativeVerification (line 79) | @Test method testClearingToken (line 89) | @Test method testUnableToClearToken (line 99) | @Test FILE: booking/src/main/java/com/automationintesting/api/BookingApplication.java class BookingApplication (line 9) | @SpringBootApplication method main (line 13) | public static void main(String[] args) { FILE: booking/src/main/java/com/automationintesting/api/BookingController.java class BookingController (line 17) | @RestController method getBookings (line 23) | @RequestMapping(value = "/", method = RequestMethod.GET) method checkUnavailability (line 30) | @RequestMapping(value = "/unavailable", method = RequestMethod.GET) method createBooking (line 37) | @RequestMapping(value = "/", method = RequestMethod.POST) method getBooking (line 44) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.GET) method deleteBooking (line 51) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.DELETE) method updateBooking (line 58) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.PUT) method getSummaries (line 65) | @RequestMapping(value = "/summary", method = RequestMethod.GET) FILE: booking/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 9) | @Configuration method openAPI (line 12) | @Bean method publicApi (line 18) | @Bean FILE: booking/src/main/java/com/automationintesting/db/BookingDB.java class BookingDB (line 24) | @Component method BookingDB (line 36) | public BookingDB() throws SQLException, IOException { method create (line 60) | public CreatedBooking create(Booking booking) throws SQLException { method queryBookingsById (line 83) | public List queryBookingsById(String roomid) throws SQLExcept... method query (line 95) | public Booking query(int id) throws SQLException { method delete (line 105) | public Boolean delete(int bookingid) throws SQLException { method update (line 113) | public CreatedBooking update(int id, Booking booking) throws SQLExcept... method resetDB (line 132) | public void resetDB() throws SQLException, IOException { method checkForBookingConflict (line 142) | public Boolean checkForBookingConflict(Booking bookingToCheck) throws ... method queryAllBookings (line 175) | public List queryAllBookings() throws SQLException { method queryBookingSummariesById (line 187) | public List queryBookingSummariesById(String roomid) t... method queryByDate (line 199) | public List queryByDate(LocalDate checkin, LocalDate ch... method executeSqlFile (line 225) | private void executeSqlFile(String filename) throws IOException, SQLEx... FILE: booking/src/main/java/com/automationintesting/db/InsertSql.java class InsertSql (line 9) | public class InsertSql { method InsertSql (line 13) | public InsertSql(Connection connection, Booking booking) throws SQLExc... method getPreparedStatement (line 26) | public PreparedStatement getPreparedStatement() { FILE: booking/src/main/java/com/automationintesting/db/UpdateSql.java class UpdateSql (line 9) | public class UpdateSql { method UpdateSql (line 13) | UpdateSql(Connection connection, int id, Booking booking) throws SQLEx... method getPreparedStatement (line 25) | public PreparedStatement getPreparedStatement() { FILE: booking/src/main/java/com/automationintesting/model/db/AvailableRoom.java class AvailableRoom (line 3) | public class AvailableRoom { method AvailableRoom (line 7) | public AvailableRoom(int roomid) { method getRoomid (line 11) | public int getRoomid() { method setRoomid (line 15) | public void setRoomid(int roomid) { method toString (line 19) | @Override FILE: booking/src/main/java/com/automationintesting/model/db/Booking.java class Booking (line 14) | @Entity method Booking (line 49) | public Booking(int bookingid, int roomid, String firstname, String las... method Booking (line 58) | public Booking(int bookingid, int roomid, String firstname, String las... method Booking (line 69) | public Booking(ResultSet result) throws SQLException { method Booking (line 78) | public Booking() { method getFirstname (line 81) | public String getFirstname() { method getLastname (line 85) | public String getLastname() { method isDepositpaid (line 89) | public boolean isDepositpaid() { method getBookingDates (line 93) | public BookingDates getBookingDates() { method getRoomid (line 97) | public int getRoomid() { method getBookingid (line 101) | public int getBookingid() { method getEmail (line 105) | public Optional getEmail() { method getPhone (line 109) | public Optional getPhone() { method setFirstname (line 113) | public void setFirstname(String firstname) { method setLastname (line 117) | public void setLastname(String lastname) { method setDepositpaid (line 121) | public void setDepositpaid(boolean depositpaid) { method setBookingDates (line 125) | public void setBookingDates(BookingDates bookingDates) { method setRoomid (line 129) | public void setRoomid(int roomid) { method setBookingid (line 133) | public void setBookingid(int bookingid) { method setEmail (line 137) | public void setEmail(String email) { method setPhone (line 141) | public void setPhone(String phone) { method toString (line 145) | @Override class BookingBuilder (line 157) | public static class BookingBuilder { method setBookingid (line 169) | public BookingBuilder setBookingid(int bookingid){ method setRoomid (line 175) | public BookingBuilder setRoomid(int roomid){ method setFirstname (line 181) | public BookingBuilder setFirstname(String firstname) { method setLastname (line 187) | public BookingBuilder setLastname(String lastname) { method setDepositpaid (line 193) | public BookingBuilder setDepositpaid(boolean depositpaid) { method setCheckin (line 199) | public BookingBuilder setCheckin(LocalDate checkin) { method setCheckout (line 205) | public BookingBuilder setCheckout(LocalDate checkout) { method setEmail (line 211) | public BookingBuilder setEmail(String email) { method setPhone (line 217) | public BookingBuilder setPhone(String phone) { method build (line 223) | public Booking build(){ FILE: booking/src/main/java/com/automationintesting/model/db/BookingDates.java class BookingDates (line 9) | @Entity method BookingDates (line 20) | public BookingDates() { method BookingDates (line 23) | public BookingDates(LocalDate checkin, LocalDate checkout) { method getCheckin (line 28) | public LocalDate getCheckin() { method setCheckin (line 32) | public void setCheckin(LocalDate checkin) { method getCheckout (line 36) | public LocalDate getCheckout() { method setCheckout (line 40) | public void setCheckout(LocalDate checkout) { method toString (line 44) | @Override FILE: booking/src/main/java/com/automationintesting/model/db/BookingSummaries.java class BookingSummaries (line 7) | public class BookingSummaries { method BookingSummaries (line 12) | public BookingSummaries(List bookings) { method BookingSummaries (line 16) | public BookingSummaries() { method getBookings (line 19) | public List getBookings() { method setBookings (line 23) | public void setBookings(List bookings) { FILE: booking/src/main/java/com/automationintesting/model/db/BookingSummary.java class BookingSummary (line 6) | public class BookingSummary { method BookingSummary (line 10) | public BookingSummary() { method BookingSummary (line 13) | public BookingSummary(BookingDates bookingDates) { method BookingSummary (line 17) | public BookingSummary(ResultSet result) throws SQLException { method getBookingDates (line 21) | public BookingDates getBookingDates() { method setBookingDates (line 25) | public void setBookingDates(BookingDates bookingDates) { FILE: booking/src/main/java/com/automationintesting/model/db/Bookings.java class Bookings (line 7) | public class Bookings { method Bookings (line 12) | public Bookings(List bookings) { method Bookings (line 16) | public Bookings() { method getBookings (line 19) | public List getBookings() { method setBookings (line 23) | public void setBookings(List bookings) { FILE: booking/src/main/java/com/automationintesting/model/db/CreatedBooking.java class CreatedBooking (line 5) | public class CreatedBooking { method CreatedBooking (line 13) | public CreatedBooking(int bookingid, Booking booking) { method CreatedBooking (line 18) | public CreatedBooking() { method getBookingid (line 21) | public int getBookingid() { method setBookingid (line 25) | public void setBookingid(int bookingid) { method getBooking (line 29) | public Booking getBooking() { method setBooking (line 33) | public void setBooking(Booking booking) { method toString (line 37) | @Override FILE: booking/src/main/java/com/automationintesting/model/db/Message.java class Message (line 7) | @Entity method Message (line 25) | public Message() { method Message (line 28) | public Message(String name, String email, String phone, String subject... method getName (line 36) | public String getName() { method getEmail (line 40) | public String getEmail() { method getPhone (line 44) | public String getPhone() { method getSubject (line 48) | public String getSubject() { method getDescription (line 52) | public String getDescription() { method setName (line 56) | public void setName(String name) { method setEmail (line 60) | public void setEmail(String email) { method setPhone (line 64) | public void setPhone(String phone) { method setSubject (line 68) | public void setSubject(String subject) { method setDescription (line 72) | public void setDescription(String description) { method toString (line 76) | @Override FILE: booking/src/main/java/com/automationintesting/model/db/Token.java class Token (line 5) | public class Token { method Token (line 10) | public Token() { method Token (line 13) | public Token(String token) { method getToken (line 17) | public String getToken() { method setToken (line 21) | public void setToken(String token) { FILE: booking/src/main/java/com/automationintesting/model/service/BookingResult.java class BookingResult (line 11) | public class BookingResult { method BookingResult (line 23) | public BookingResult(Booking booking, HttpStatus result) { method BookingResult (line 28) | public BookingResult(CreatedBooking createdBooking, HttpStatus result) { method BookingResult (line 33) | public BookingResult(Bookings bookings, HttpStatus result){ method BookingResult (line 38) | public BookingResult(List availableRooms, HttpStatus re... method BookingResult (line 43) | public BookingResult(HttpStatus result) { method getStatus (line 47) | public HttpStatus getStatus() { method getBooking (line 51) | public Booking getBooking() { method getCreatedBooking (line 55) | public CreatedBooking getCreatedBooking() { method getBookings (line 59) | public Bookings getBookings() { method getAvailableRooms (line 63) | public List getAvailableRooms() { FILE: booking/src/main/java/com/automationintesting/requests/AuthRequests.java class AuthRequests (line 10) | public class AuthRequests { method AuthRequests (line 14) | public AuthRequests() { method postCheckAuth (line 22) | public boolean postCheckAuth(String tokenValue){ FILE: booking/src/main/java/com/automationintesting/requests/MessageRequests.java class MessageRequests (line 10) | public class MessageRequests { method MessageRequests (line 14) | public MessageRequests() { method postMessage (line 22) | public boolean postMessage(Message message){ FILE: booking/src/main/java/com/automationintesting/service/BookingService.java class BookingService (line 21) | @Service method BookingService (line 30) | public BookingService() { method beginDbScheduler (line 36) | @EventListener(ApplicationReadyEvent.class) method getBookings (line 42) | public BookingResult getBookings(Optional roomId, String token... method getIndividualBooking (line 58) | public BookingResult getIndividualBooking(int bookingId, String token)... method deleteBooking (line 71) | public HttpStatus deleteBooking(int bookingid, String token) throws SQ... method updateBooking (line 83) | public BookingResult updateBooking(int bookingId, Booking bookingToUpd... method createBooking (line 105) | public BookingResult createBooking(Booking bookingToCreate) throws SQL... method getBookingSummaries (line 126) | public BookingSummaries getBookingSummaries(String roomId) throws SQLE... method checkUnavailability (line 134) | public BookingResult checkUnavailability(LocalDate checkin, LocalDate ... FILE: booking/src/main/java/com/automationintesting/service/DatabaseScheduler.java class DatabaseScheduler (line 11) | public class DatabaseScheduler { method DatabaseScheduler (line 17) | public DatabaseScheduler() { method startScheduler (line 25) | public void startScheduler(BookingDB bookingDB, TimeUnit timeUnit){ method getResetCount (line 47) | public int getResetCount() { method stepScheduler (line 51) | public void stepScheduler() { FILE: booking/src/main/java/com/automationintesting/service/DateCheckValidator.java class DateCheckValidator (line 7) | public class DateCheckValidator { method isValid (line 9) | public boolean isValid(BookingDates dateBooking) { FILE: booking/src/main/java/com/automationintesting/service/MessageBuilder.java class MessageBuilder (line 6) | public class MessageBuilder { method build (line 8) | public Message build(Booking booking) { FILE: booking/src/main/java/com/automationintesting/service/MethodArgumentNotValidExceptionHandler.java class MethodArgumentNotValidExceptionHandler (line 15) | @ControllerAdvice method handleMethodArgumentNotValidException (line 18) | @ExceptionHandler(MethodArgumentNotValidException.class) class Error (line 35) | public static class Error{ method Error (line 41) | public Error(HttpStatus status, String message, List fieldEr... method getErrorCode (line 48) | public int getErrorCode() { method setErrorCode (line 52) | public void setErrorCode(int errorCode) { method getError (line 56) | public String getError() { method setError (line 60) | public void setError(String error) { method getErrorMessage (line 64) | public String getErrorMessage() { method setErrorMessage (line 68) | public void setErrorMessage(String errorMessage) { method getFieldErrors (line 72) | public List getFieldErrors() { method setFieldErrors (line 76) | public void setFieldErrors(List fieldErrors) { FILE: booking/src/main/resources/db.sql type BOOKINGS (line 1) | CREATE TABLE BOOKINGS ( bookingid int NOT NULL AUTO_INCREMENT, roomid in... FILE: booking/src/test/java/com/automationintesting/integration/BookingDateConflictIT.java class BookingDateConflictIT (line 19) | @ExtendWith(SpringExtension.class) method testBookingConflict (line 24) | @Test method testBookingDatesInvalid (line 59) | @Test FILE: booking/src/test/java/com/automationintesting/integration/BookingValidationIT.java class BookingValidationIT (line 16) | @ExtendWith(SpringExtension.class) method testPostValidation (line 21) | @Test method testPutValidation (line 37) | @Test FILE: booking/src/test/java/com/automationintesting/integration/GetBookingIT.java class GetBookingIT (line 23) | @ExtendWith(SpringExtension.class) method setupRestito (line 30) | @BeforeEach method stopServer (line 37) | @AfterEach method getValidBooking (line 45) | @Test method getInvalidBooking (line 54) | @Test method getQueryAvailableRoomsByDate (line 63) | @Test method getEmptyQueryAvailableRoomsByDate (line 74) | @Test method getPartialQueryAvailableRoomsByDate (line 87) | @Test FILE: booking/src/test/java/com/automationintesting/integration/MessageRequestIT.java class MessageRequestIT (line 28) | @ExtendWith(SpringExtension.class) method setupRestito (line 35) | @BeforeEach method stopServer (line 42) | @AfterEach method testSendingToMessageAPI (line 47) | @Test FILE: booking/src/test/java/com/automationintesting/integration/examples/BookingIntegrationIT.java class BookingIntegrationIT (line 30) | @ExtendWith(SpringExtension.class) method setupRestito (line 39) | @BeforeEach method stopServer (line 52) | @AfterEach method testCreateBooking (line 60) | @Test FILE: booking/src/test/java/com/automationintesting/integration/examples/ContractIT.java class ContractIT (line 31) | @ExtendWith(SpringExtension.class) method setupRestito (line 39) | @BeforeEach method stopServer (line 46) | @AfterEach method checkAuthContract (line 56) | @Test FILE: booking/src/test/java/com/automationintesting/unit/BaseTest.java class BaseTest (line 9) | public class BaseTest { method createBookingDb (line 24) | @BeforeAll FILE: booking/src/test/java/com/automationintesting/unit/db/DateConflictTest.java class DateConflictTest (line 17) | public class DateConflictTest extends BaseTest { method resetDb (line 19) | @BeforeEach method testBookingWithNoConflict (line 24) | @Test method testConflictingBooking (line 43) | @Test method testPartialConflict (line 77) | @Test method testConflictForSpecificRoom (line 111) | @Test method testNoConflictForOverlapOnCheckoutCheckinDate (line 144) | @Test method testNoConflictIfReturnedBookingIsSameRoom (line 177) | @Test FILE: booking/src/test/java/com/automationintesting/unit/examples/SqlTest.java class SqlTest (line 21) | public class SqlTest extends BaseTest { method resetDb (line 30) | @BeforeEach method testQuerySql (line 55) | @Test method testCreateSql (line 71) | @Test method testDeleteSql (line 88) | @Test method testUpdateSql (line 96) | @Test method testQueryByDateSql (line 113) | @Test FILE: booking/src/test/java/com/automationintesting/unit/model/MessageBuilderTest.java class MessageBuilderTest (line 14) | public class MessageBuilderTest { method messageBuiltFromBookingTest (line 16) | @Test FILE: booking/src/test/java/com/automationintesting/unit/service/BookingServiceTest.java class BookingServiceTest (line 32) | public class BookingServiceTest { method initialiseMocks (line 47) | @BeforeEach method returnAllBookingsTest (line 52) | @Test method returnBookingsByRoomIdTest (line 69) | @Test method returnSpecificBookingTest (line 85) | @Test method returnBookingNotFoundTest (line 98) | @Test method deleteBookingTest (line 109) | @Test method deleteBookingNotFoundTest (line 119) | @Test method updateBookingTest (line 129) | @Test method updateBookingNotFoundTest (line 145) | @Test method updateBookingDatesTest (line 160) | @Test method updateBookingBadDatesTest (line 172) | @Test method createBookingTest (line 183) | @Test method createBookingDateConflictTest (line 195) | @Test method createBookingDateInvalidTest (line 206) | @Test method queryBookingsByDateTest (line 216) | @Test method createGenericBooking (line 234) | private Booking createGenericBooking() { FILE: booking/src/test/java/com/automationintesting/unit/service/DateCheckValidatorTest.java class DateCheckValidatorTest (line 12) | public class DateCheckValidatorTest { method setup (line 17) | @BeforeEach method invalidIfDatesNotProvided (line 23) | @Test method invalidIfCheckinAfterCheckout (line 30) | @Test method invalidIfCheckinAndCheckoutSameDay (line 40) | @Test method validIfCheckinBeforeCheckout (line 50) | @Test FILE: branding/src/main/java/com/automationintesting/api/BrandingApplication.java class BrandingApplication (line 7) | @SpringBootApplication method main (line 11) | public static void main(String[] args) { FILE: branding/src/main/java/com/automationintesting/api/BrandingController.java class BrandingController (line 13) | @RestController method getBranding (line 19) | @RequestMapping(value = "/", method = RequestMethod.GET) method updateBranding (line 26) | @RequestMapping(value = "/", method = RequestMethod.PUT) FILE: branding/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 9) | @Configuration method openAPI (line 12) | @Bean method publicApi (line 18) | @Bean FILE: branding/src/main/java/com/automationintesting/db/BrandingDB.java class BrandingDB (line 22) | @Component method BrandingDB (line 32) | public BrandingDB() throws SQLException, IOException { method update (line 56) | public Branding update(Branding branding) throws SQLException { method queryBranding (line 72) | public Branding queryBranding() throws SQLException { method resetDB (line 93) | public void resetDB() throws SQLException, IOException { method executeSqlFile (line 103) | private void executeSqlFile(String filename) throws IOException, SQLEx... FILE: branding/src/main/java/com/automationintesting/db/InsertSql.java class InsertSql (line 9) | public class InsertSql { method InsertSql (line 13) | InsertSql(Connection connection, Branding branding) throws SQLException { method getPreparedStatement (line 33) | public PreparedStatement getPreparedStatement() { FILE: branding/src/main/java/com/automationintesting/db/UpdateSql.java class UpdateSql (line 9) | public class UpdateSql { method UpdateSql (line 13) | UpdateSql(Connection connection, Branding branding) throws SQLException { method getPreparedStatement (line 33) | public PreparedStatement getPreparedStatement() { FILE: branding/src/main/java/com/automationintesting/model/db/Address.java class Address (line 10) | public class Address { method Address (line 37) | public Address() {} method Address (line 39) | public Address(String line1, String line2, String postTown, String cou... method Address (line 47) | public Address(ResultSet result) throws SQLException { method getLine1 (line 55) | public String getLine1() { method setLine1 (line 59) | public void setLine1(String line1) { method getLine2 (line 63) | public String getLine2() { method setLine2 (line 67) | public void setLine2(String line2) { method getPostTown (line 71) | public String getPostTown() { method setPostTown (line 75) | public void setPostTown(String postTown) { method getCounty (line 79) | public String getCounty() { method setCounty (line 83) | public void setCounty(String county) { method getPostCode (line 87) | public String getPostCode() { method setPostCode (line 91) | public void setPostCode(String postCode) { method toString (line 95) | @Override FILE: branding/src/main/java/com/automationintesting/model/db/Branding.java class Branding (line 15) | @Entity method Branding (line 55) | public Branding() {} method Branding (line 57) | public Branding(String name, Map map, String directions, String logoUr... method Branding (line 67) | public Branding(ResultSet result) throws SQLException { method getName (line 77) | public String getName() { method getMap (line 81) | public Map getMap() { method getLogoUrl (line 85) | public String getLogoUrl() { method getDirections (line 89) | public String getDirections() { method getDescription (line 93) | public String getDescription() { method getContact (line 97) | public Contact getContact() { method getAddress (line 101) | public Address getAddress() { method setName (line 105) | public void setName(String name) { method setMap (line 109) | public void setMap(Map map) { method setLogoUrl (line 113) | public void setLogoUrl(String logoUrl) { method setDescription (line 117) | public void setDescription(String description) { method setContact (line 121) | public void setContact(Contact contact) { method setDirections (line 125) | public void setDirections(String directions) { method setAddress (line 129) | public void setAddress(Address address) { method toString (line 133) | @Override class BrandingBuilder (line 146) | public static class BrandingBuilder { method setName (line 155) | public BrandingBuilder setName(String name) { method setMap (line 161) | public BrandingBuilder setMap(Map map) { method setLogoUrl (line 167) | public BrandingBuilder setLogoUrl(String logoUrl) { method setDirections (line 173) | public BrandingBuilder setDirections(String directions) { method setDescription (line 179) | public BrandingBuilder setDescription(String description) { method setContact (line 185) | public BrandingBuilder setContact(Contact contact) { method setAddress (line 191) | public BrandingBuilder setAddress(Address address) { method build (line 197) | public Branding build(){ FILE: branding/src/main/java/com/automationintesting/model/db/Contact.java class Contact (line 10) | @Entity method Contact (line 32) | public Contact(String name, String phone, String email) { method Contact (line 38) | public Contact(ResultSet result) throws SQLException { method Contact (line 44) | public Contact() {} method getName (line 46) | public String getName() { method getPhone (line 50) | public String getPhone() { method getEmail (line 54) | public String getEmail() { method setName (line 58) | public void setName(String name) { method setPhone (line 62) | public void setPhone(String phone) { method setEmail (line 66) | public void setEmail(String email) { method toString (line 70) | @Override FILE: branding/src/main/java/com/automationintesting/model/db/Map.java class Map (line 10) | @Entity method Map (line 20) | public Map() {} method Map (line 22) | public Map(double latitude, double longitude) { method Map (line 27) | public Map(ResultSet result) throws SQLException { method getLatitude (line 32) | public double getLatitude() { method getLongitude (line 36) | public double getLongitude() { method setLatitude (line 40) | public void setLatitude(double latitude) { method setLongitude (line 44) | public void setLongitude(double longitude) { method toString (line 48) | @Override FILE: branding/src/main/java/com/automationintesting/model/service/BrandingResult.java class BrandingResult (line 6) | public class BrandingResult { method BrandingResult (line 11) | public BrandingResult(HttpStatus httpStatus, Branding branding) { method BrandingResult (line 16) | public BrandingResult(HttpStatus httpStatus) { method getHttpStatus (line 20) | public HttpStatus getHttpStatus() { method setHttpStatus (line 24) | public void setHttpStatus(HttpStatus httpStatus) { method getBranding (line 28) | public Branding getBranding() { method setBranding (line 32) | public void setBranding(Branding branding) { FILE: branding/src/main/java/com/automationintesting/model/service/Token.java class Token (line 5) | public class Token { method Token (line 10) | public Token() { method Token (line 13) | public Token(String token) { method getToken (line 17) | public String getToken() { method setToken (line 21) | public void setToken(String token) { FILE: branding/src/main/java/com/automationintesting/requests/AuthRequests.java class AuthRequests (line 10) | public class AuthRequests { method AuthRequests (line 14) | public AuthRequests() { method postCheckAuth (line 22) | public boolean postCheckAuth(String tokenValue){ FILE: branding/src/main/java/com/automationintesting/service/BrandingService.java class BrandingService (line 16) | @Service method BrandingService (line 23) | public BrandingService() { method beginDbScheduler (line 27) | @EventListener(ApplicationReadyEvent.class) method getBrandingDetails (line 33) | public Branding getBrandingDetails() throws SQLException { method updateBrandingDetails (line 37) | public BrandingResult updateBrandingDetails(Branding branding, String ... FILE: branding/src/main/java/com/automationintesting/service/DatabaseScheduler.java class DatabaseScheduler (line 11) | public class DatabaseScheduler { method DatabaseScheduler (line 17) | public DatabaseScheduler() { method startScheduler (line 25) | public void startScheduler(BrandingDB brandingDB, TimeUnit timeUnit){ FILE: branding/src/main/java/com/automationintesting/service/MethodArgumentNotValidExceptionHandler.java class MethodArgumentNotValidExceptionHandler (line 15) | @ControllerAdvice method handleMethodArgumentNotValidException (line 18) | @ExceptionHandler(MethodArgumentNotValidException.class) class Error (line 35) | public static class Error{ method Error (line 41) | public Error(HttpStatus status, String message, List fieldEr... method getErrorCode (line 48) | public int getErrorCode() { method setErrorCode (line 52) | public void setErrorCode(int errorCode) { method getError (line 56) | public String getError() { method setError (line 60) | public void setError(String error) { method getErrorMessage (line 64) | public String getErrorMessage() { method setErrorMessage (line 68) | public void setErrorMessage(String errorMessage) { method getFieldErrors (line 72) | public List getFieldErrors() { method setFieldErrors (line 76) | public void setFieldErrors(List fieldErrors) { FILE: branding/src/main/resources/db.sql type BRANDINGS (line 1) | CREATE TABLE BRANDINGS ( brandingid int NOT NULL AUTO_INCREMENT, name va... FILE: branding/src/test/java/com/automationintesting/integration/BrandingServiceIT.java class BrandingServiceIT (line 27) | @ExtendWith(SpringExtension.class) method setupRestito (line 34) | @BeforeEach method stopServer (line 41) | @AfterEach method returnsBrandingData (line 49) | @Test method updateBrandingData (line 58) | @Test method testPutValidation (line 80) | @Test FILE: branding/src/test/java/com/automationintesting/unit/service/BrandingServiceTest.java class BrandingServiceTest (line 24) | public class BrandingServiceTest { method initialiseMocks (line 36) | @BeforeEach method queryBrandingTest (line 41) | @Test method updateBrandingTest (line 54) | @Test method updateBrandingFailedTest (line 72) | @Test FILE: end-to-end-tests/src/main/java/driverfactory/DriverFactory.java class DriverFactory (line 15) | public class DriverFactory method create (line 19) | public WebDriver create() { method prepareChromeDriver (line 35) | private WebDriver prepareChromeDriver(){ method prepareRemoteDriver (line 41) | private WebDriver prepareRemoteDriver(){ FILE: end-to-end-tests/src/main/java/models/Booking.java class Booking (line 3) | public class Booking { method Booking (line 9) | public Booking(String firstname, String lastname, String totalPrice) { method getFirstname (line 15) | public String getFirstname() { method getLastname (line 19) | public String getLastname() { method getTotalPrice (line 23) | public String getTotalPrice() { FILE: end-to-end-tests/src/main/java/models/Contact.java class Contact (line 5) | public class Contact method Contact (line 17) | public Contact() { method Contact (line 20) | public Contact(String name, String phone, String email) { method getName (line 26) | public String getName() { method setName (line 30) | public void setName(String name) { method getPhone (line 34) | public String getPhone() { method setPhone (line 38) | public void setPhone(String phone) { method getEmail (line 42) | public String getEmail() { method setEmail (line 46) | public void setEmail(String email) { FILE: end-to-end-tests/src/main/java/models/Room.java class Room (line 10) | public class Room method Room (line 18) | public Room() { method Room (line 21) | public Room(String number, String type, String beds, String accessible... method getNumber (line 29) | public String getNumber() { method setNumber (line 33) | public void setNumber(String number) { method getType (line 37) | public String getType() { method setType (line 41) | public void setType(String type) { method getBeds (line 45) | public String getBeds() { method setBeds (line 49) | public void setBeds(String beds) { method getAccessible (line 53) | public String getAccessible() { method setAccessible (line 57) | public void setAccessible(String accessible) { method getDetails (line 61) | public String getDetails() { method setDetails (line 65) | public void setDetails(String details) { FILE: end-to-end-tests/src/main/java/pageobjects/BasePage.java class BasePage (line 6) | public class BasePage method BasePage (line 10) | public BasePage(WebDriver driver) FILE: end-to-end-tests/src/main/java/pageobjects/BrandingPage.java class BrandingPage (line 8) | public class BrandingPage extends BasePage { method BrandingPage (line 13) | public BrandingPage(WebDriver driver) { method getNameValue (line 17) | public String getNameValue() throws InterruptedException { FILE: end-to-end-tests/src/main/java/pageobjects/HomePage.java class HomePage (line 15) | public class HomePage extends BasePage { method HomePage (line 29) | public HomePage(WebDriver driver) { method clickOpenBookingForm (line 33) | public void clickOpenBookingForm() throws InterruptedException { method clickSubmitBooking (line 40) | public void clickSubmitBooking() { method bookingFormErrorsExist (line 45) | public Boolean bookingFormErrorsExist() { FILE: end-to-end-tests/src/main/java/pageobjects/LoginPage.java class LoginPage (line 8) | public class LoginPage extends BasePage method LoginPage (line 19) | public LoginPage(WebDriver driver) method populateUsername (line 24) | public LoginPage populateUsername(String username) method populatePassword (line 30) | public LoginPage populatePassword(String password) method clickLogin (line 36) | public RoomListingPage clickLogin() FILE: end-to-end-tests/src/main/java/pageobjects/MessagePage.java class MessagePage (line 11) | public class MessagePage extends BasePage { method MessagePage (line 16) | public MessagePage(WebDriver driver) { method getMessages (line 20) | public List getMessages() { FILE: end-to-end-tests/src/main/java/pageobjects/NavPage.java class NavPage (line 9) | public class NavPage extends BasePage { method NavPage (line 29) | public NavPage(WebDriver driver) { method getDivNavBar (line 33) | public WebElement getDivNavBar() { method clickReport (line 37) | public void clickReport() { method clickBranding (line 41) | public void clickBranding() { method clickNotification (line 45) | public void clickNotification() { method clickFrontPage (line 49) | public void clickFrontPage() { FILE: end-to-end-tests/src/main/java/pageobjects/ReportPage.java class ReportPage (line 8) | public class ReportPage extends BasePage{ method ReportPage (line 13) | public ReportPage(WebDriver driver) { method reportExists (line 17) | public Boolean reportExists() { FILE: end-to-end-tests/src/main/java/pageobjects/ReservationPage.java class ReservationPage (line 8) | public class ReservationPage extends BasePage { method ReservationPage (line 13) | public ReservationPage(WebDriver driver) { method bookingFormExists (line 17) | public Boolean bookingFormExists() { FILE: end-to-end-tests/src/main/java/pageobjects/RoomListingPage.java class RoomListingPage (line 14) | public class RoomListingPage extends BasePage { method RoomListingPage (line 40) | public RoomListingPage(WebDriver driver){ method populateRoomName (line 46) | public void populateRoomName(String roomName) throws InterruptedExcept... method clickCreateRoom (line 51) | public void clickCreateRoom() throws InterruptedException { method roomCount (line 57) | public int roomCount() throws InterruptedException { method clickFirstRoom (line 62) | public void clickFirstRoom() { method checkWifi (line 66) | public void checkWifi() { method checkSafe (line 70) | public void checkSafe() { method checkRadio (line 74) | public void checkRadio() { method roomFormExists (line 78) | public Boolean roomFormExists() { method setRoomPrice (line 82) | public void setRoomPrice(String price) throws InterruptedException { FILE: end-to-end-tests/src/main/java/pageobjects/RoomPage.java class RoomPage (line 11) | public class RoomPage extends BasePage { method RoomPage (line 40) | public RoomPage(WebDriver driver) { method populateFirstname (line 44) | public void populateFirstname(String firstname) throws InterruptedExce... method populateLastname (line 49) | public void populateLastname(String lastname) throws InterruptedExcept... method populateTotalPrice (line 54) | public void populateTotalPrice(String totalPrice) throws InterruptedEx... method clickCreateBooking (line 59) | public void clickCreateBooking() throws InterruptedException { method getBookingCount (line 65) | public int getBookingCount() throws InterruptedException { method populateCheckin (line 70) | public void populateCheckin(String checkInDate) throws InterruptedExce... method populateCheckout (line 76) | public void populateCheckout(String checkOutDate) throws InterruptedEx... FILE: end-to-end-tests/src/main/java/pageobjects/SearchPage.java class SearchPage (line 11) | public class SearchPage extends BasePage { method SearchPage (line 16) | public SearchPage(WebDriver driver) { method getSearchResults (line 20) | public List getSearchResults() { FILE: end-to-end-tests/src/test/java/SmokeTest.java class SmokeTest (line 12) | public class SmokeTest extends TestSetup { method logIntoApplication (line 14) | @BeforeEach method authSmokeTest (line 24) | @Test method roomSmokeTest (line 31) | @Test method bookingSmokeTest (line 48) | @Test method reportSmokeTest (line 60) | @Test method brandingSmokeTest (line 70) | @Test method messageSmokeTest (line 81) | @Test FILE: end-to-end-tests/src/test/java/TestSetup.java class TestSetup (line 13) | public class TestSetup { method SetUp (line 17) | @BeforeEach method TearDown (line 23) | @AfterEach method navigateToApplication (line 28) | void navigateToApplication(){ FILE: message/src/main/java/com/automationintesting/api/MessageApplication.java class MessageApplication (line 7) | @SpringBootApplication method main (line 11) | public static void main(String[] args) { FILE: message/src/main/java/com/automationintesting/api/MessageController.java class MessageController (line 16) | @RestController method getMessages (line 22) | @RequestMapping(value = "/", method = RequestMethod.GET) method getCount (line 29) | @RequestMapping(value = "/count", method = RequestMethod.GET) method getMessage (line 36) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.GET) method createMessage (line 43) | @RequestMapping(value = "/", method = RequestMethod.POST) method deleteMessage (line 50) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.DELETE) method markAsRead (line 57) | @RequestMapping(value = "/{id:[0-9]*}/read", method = RequestMethod.PUT) FILE: message/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 9) | @Configuration method openAPI (line 12) | @Bean method publicApi (line 18) | @Bean FILE: message/src/main/java/com/automationintesting/db/InsertSql.java class InsertSql (line 9) | public class InsertSql { method InsertSql (line 13) | InsertSql(Connection connection, Message message) throws SQLException { method getPreparedStatement (line 24) | public PreparedStatement getPreparedStatement() { FILE: message/src/main/java/com/automationintesting/db/MessageDB.java class MessageDB (line 23) | @Component method MessageDB (line 37) | public MessageDB() throws SQLException, IOException { method create (line 61) | public Message create(Message message) throws SQLException { method resetDB (line 81) | public void resetDB() throws SQLException, IOException { method query (line 91) | public Message query(int id) throws SQLException { method delete (line 101) | public Boolean delete(int messageId) throws SQLException { method queryMessages (line 109) | public List queryMessages() throws SQLException { method markAsRead (line 122) | public void markAsRead(int messageId) throws SQLException { method getUnreadCount (line 129) | public int getUnreadCount() throws SQLException { method executeSqlFile (line 137) | private void executeSqlFile(String filename) throws IOException, SQLEx... FILE: message/src/main/java/com/automationintesting/model/db/Count.java class Count (line 5) | public class Count { method Count (line 10) | public Count(int count) { method getCount (line 14) | public int getCount() { method toString (line 18) | @Override FILE: message/src/main/java/com/automationintesting/model/db/Message.java class Message (line 10) | @Entity method Message (line 45) | public Message() { method Message (line 48) | public Message(String name, String email, String phone, String subject... method Message (line 56) | public Message(ResultSet result) throws SQLException { method getMessageid (line 65) | public int getMessageid() { method getName (line 69) | public String getName() { method getEmail (line 73) | public String getEmail() { method getPhone (line 77) | public String getPhone() { method getSubject (line 81) | public String getSubject() { method getDescription (line 85) | public String getDescription() { method setMessageid (line 89) | public void setMessageid(int messageid) { method setName (line 93) | public void setName(String name) { method setEmail (line 97) | public void setEmail(String email) { method setPhone (line 101) | public void setPhone(String phone) { method setSubject (line 105) | public void setSubject(String subject) { method setDescription (line 109) | public void setDescription(String description) { method toString (line 113) | @Override FILE: message/src/main/java/com/automationintesting/model/db/MessageSummary.java class MessageSummary (line 8) | public class MessageSummary { method MessageSummary (line 22) | public MessageSummary(ResultSet resultSet) throws SQLException { method MessageSummary (line 29) | public MessageSummary(int id, String name, String subject, boolean rea... method getId (line 36) | public int getId() { method getName (line 40) | public String getName() { method getSubject (line 44) | public String getSubject() { method isRead (line 48) | public boolean isRead() { method toString (line 52) | @Override FILE: message/src/main/java/com/automationintesting/model/db/Messages.java class Messages (line 7) | public class Messages { method Messages (line 12) | public Messages(List messages) { method getMessages (line 16) | public List getMessages() { method toString (line 20) | @Override FILE: message/src/main/java/com/automationintesting/model/requests/Token.java class Token (line 5) | public class Token { method Token (line 10) | public Token() { method Token (line 13) | public Token(String token) { method getToken (line 17) | public String getToken() { method setToken (line 21) | public void setToken(String token) { FILE: message/src/main/java/com/automationintesting/model/service/MessageResult.java class MessageResult (line 6) | public class MessageResult { method MessageResult (line 12) | public MessageResult(HttpStatus httpStatus, Message message) { method MessageResult (line 17) | public MessageResult(HttpStatus httpStatus) { method getHttpStatus (line 21) | public HttpStatus getHttpStatus() { method getMessage (line 25) | public Message getMessage() { FILE: message/src/main/java/com/automationintesting/requests/AuthRequests.java class AuthRequests (line 10) | public class AuthRequests { method AuthRequests (line 14) | public AuthRequests() { method postCheckAuth (line 22) | public boolean postCheckAuth(String tokenValue){ FILE: message/src/main/java/com/automationintesting/service/DatabaseScheduler.java class DatabaseScheduler (line 11) | public class DatabaseScheduler { method DatabaseScheduler (line 17) | public DatabaseScheduler() { method startScheduler (line 25) | public void startScheduler(MessageDB messageDB, TimeUnit timeUnit){ method getResetCount (line 46) | public int getResetCount() { method stepScheduler (line 50) | public void stepScheduler() { FILE: message/src/main/java/com/automationintesting/service/MessageService.java class MessageService (line 18) | @Service method MessageService (line 26) | public MessageService() { method beginDbScheduler (line 30) | @EventListener(ApplicationReadyEvent.class) method getMessages (line 36) | public Messages getMessages() throws SQLException { method getCount (line 40) | public Count getCount() throws SQLException { method getSpecificMessage (line 46) | public MessageResult getSpecificMessage(int messageId) throws SQLExcep... method createMessage (line 56) | public Message createMessage(Message messageToCreate) throws SQLExcept... method deleteMessage (line 62) | public MessageResult deleteMessage(int messageId, String token) throws... method markAsRead (line 74) | public HttpStatus markAsRead(int messageId, String token) throws SQLEx... FILE: message/src/main/java/com/automationintesting/service/MethodArgumentNotValidExceptionHandler.java class MethodArgumentNotValidExceptionHandler (line 15) | @ControllerAdvice method handleMethodArgumentNotValidException (line 18) | @ExceptionHandler(MethodArgumentNotValidException.class) class Error (line 35) | public static class Error{ method Error (line 41) | public Error(HttpStatus status, String message, List fieldEr... method getErrorCode (line 48) | public int getErrorCode() { method setErrorCode (line 52) | public void setErrorCode(int errorCode) { method getError (line 56) | public String getError() { method setError (line 60) | public void setError(String error) { method getErrorMessage (line 64) | public String getErrorMessage() { method setErrorMessage (line 68) | public void setErrorMessage(String errorMessage) { method getFieldErrors (line 72) | public List getFieldErrors() { method setFieldErrors (line 76) | public void setFieldErrors(List fieldErrors) { FILE: message/src/main/resources/db.sql type MESSAGES (line 1) | CREATE TABLE MESSAGES ( messageid int NOT NULL AUTO_INCREMENT, name varc... FILE: message/src/test/java/com/automationintesting/integration/MessageEndpointsIT.java class MessageEndpointsIT (line 24) | @ExtendWith(SpringExtension.class) method setupRestito (line 31) | @BeforeEach method stopServer (line 38) | @AfterEach method createMessage (line 46) | @Test method getMessage (line 59) | @Test method getMessages (line 67) | @Test method getCount (line 75) | @Test method deleteMessage (line 83) | @Test method validationTest (line 101) | @Test method markAsReadTest (line 112) | @Test FILE: message/src/test/java/com/automationintesting/unit/db/BaseTest.java class BaseTest (line 9) | public class BaseTest { method createMessageDb (line 24) | @BeforeAll FILE: message/src/test/java/com/automationintesting/unit/db/MessageDBTest.java class MessageDBTest (line 17) | public class MessageDBTest extends BaseTest { method resetDB (line 21) | @BeforeEach method testQueryMessage (line 36) | @Test method testCreateMessage (line 45) | @Test method testDeleteMessage (line 60) | @Test method testGetMessages (line 67) | @Test method testReadCount (line 82) | @Test method testMarkAsRead (line 89) | @Test FILE: message/src/test/java/com/automationintesting/unit/service/MessageServiceTest.java class MessageServiceTest (line 27) | public class MessageServiceTest { method initialiseMocks (line 39) | @BeforeEach method getMessagesTest (line 44) | @Test method getCountTest (line 58) | @Test method getMessageTest (line 67) | @Test method getMessageNotFoundTest (line 79) | @Test method createMessageTest (line 88) | @Test method deleteMessageTest (line 99) | @Test method deleteMessageNotFoundTest (line 109) | @Test method deleteMessageNotAuthenticatedTest (line 119) | @Test method markMessageAsReadTest (line 128) | @Test method markMessageAsReadNotAuthenticated (line 138) | @Test FILE: report/src/main/java/com/automationintesting/api/ReportApplication.java class ReportApplication (line 10) | @SpringBootApplication method started (line 14) | @PostConstruct method main (line 19) | public static void main(String[] args) { FILE: report/src/main/java/com/automationintesting/api/ReportController.java class ReportController (line 10) | @RestController method getAllRoomReports (line 16) | @RequestMapping(value = "/", method = RequestMethod.GET) method getSpecificRoomReport (line 23) | @RequestMapping(value = "/room/{id:[0-9]*}", method = RequestMethod.GET) FILE: report/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 9) | @Configuration method openAPI (line 12) | @Bean method publicApi (line 18) | @Bean FILE: report/src/main/java/com/automationintesting/model/booking/Booking.java class Booking (line 5) | public class Booking { method Booking (line 20) | public Booking(int bookingid, int roomid, String firstname, String las... method Booking (line 29) | public Booking() { method getFirstname (line 32) | public String getFirstname() { method getLastname (line 36) | public String getLastname() { method isDepositpaid (line 40) | public boolean isDepositpaid() { method getBookingDates (line 44) | public BookingDates getBookingDates() { method getRoomid (line 48) | public int getRoomid() { method setFirstname (line 52) | public void setFirstname(String firstname) { method setLastname (line 56) | public void setLastname(String lastname) { method setDepositpaid (line 60) | public void setDepositpaid(boolean depositpaid) { method setBookingDates (line 64) | public void setBookingDates(BookingDates bookingDates) { method setRoomid (line 68) | public void setRoomid(int roomId) { method toString (line 72) | @Override FILE: report/src/main/java/com/automationintesting/model/booking/BookingDates.java class BookingDates (line 9) | public class BookingDates { method BookingDates (line 19) | public BookingDates() { method BookingDates (line 22) | public BookingDates(Date checkin, Date checkout) { method getCheckin (line 27) | public Date getCheckin() { method setCheckin (line 31) | public void setCheckin(Date checkin) { method getCheckout (line 35) | public Date getCheckout() { method setCheckout (line 39) | public void setCheckout(Date checkout) { method toString (line 43) | @Override FILE: report/src/main/java/com/automationintesting/model/booking/BookingSummaries.java class BookingSummaries (line 7) | public class BookingSummaries { method BookingSummaries (line 12) | public BookingSummaries(List bookings) { method BookingSummaries (line 16) | public BookingSummaries() { method getBookings (line 19) | public List getBookings() { method setBookings (line 23) | public void setBookings(List bookings) { FILE: report/src/main/java/com/automationintesting/model/booking/BookingSummary.java class BookingSummary (line 3) | public class BookingSummary { method BookingSummary (line 7) | public BookingSummary() { method BookingSummary (line 10) | public BookingSummary(BookingDates bookingDates) { method getBookingDates (line 14) | public BookingDates getBookingDates() { method setBookingDates (line 18) | public void setBookingDates(BookingDates bookingDates) { FILE: report/src/main/java/com/automationintesting/model/booking/Bookings.java class Bookings (line 7) | public class Bookings { method Bookings (line 12) | public Bookings() { method Bookings (line 15) | public Bookings(List bookings) { method getBookings (line 19) | public List getBookings() { method setBookings (line 23) | public void setBookings(List bookings) { method toString (line 27) | @Override FILE: report/src/main/java/com/automationintesting/model/report/Entry.java class Entry (line 9) | public class Entry { method Entry (line 22) | public Entry(Date start, Date end, String title) { method getStart (line 28) | public Date getStart() { method setStart (line 32) | public void setStart(Date start) { method getEnd (line 36) | public Date getEnd() { method setEnd (line 40) | public void setEnd(Date end) { method getTitle (line 44) | public String getTitle() { method setTitle (line 48) | public void setTitle(String title) { method toString (line 52) | @Override FILE: report/src/main/java/com/automationintesting/model/report/Report.java class Report (line 7) | public class Report { method Report (line 12) | public Report(List report) { method getReport (line 16) | public List getReport() { method setReport (line 20) | public void setReport(List report) { method toString (line 24) | @Override FILE: report/src/main/java/com/automationintesting/model/room/Room.java class Room (line 8) | public class Room { method Room (line 25) | public Room() { method Room (line 28) | public Room(int roomid, String roomName, String type, int beds, boolea... method getRoomid (line 36) | public int getRoomid() { method setRoomid (line 40) | public void setRoomid(int roomid) { method getRoomName (line 44) | public String getRoomName() { method setRoomName (line 48) | public void setRoomName(String roomName) { method getType (line 52) | public String getType() { method setType (line 56) | public void setType(String type) { method getBeds (line 60) | public int getBeds() { method setBeds (line 64) | public void setBeds(int beds) { method isAccessible (line 68) | public boolean isAccessible() { method setAccessible (line 72) | public void setAccessible(boolean accessible) { method getDetails (line 76) | public String getDetails() { method setDetails (line 80) | public void setDetails(String details) { method getBookings (line 84) | public List getBookings() { method setBookings (line 88) | public void setBookings(List bookings) { method toString (line 92) | @Override FILE: report/src/main/java/com/automationintesting/model/room/Rooms.java class Rooms (line 7) | public class Rooms { method Rooms (line 12) | public Rooms(List roomList) { method Rooms (line 16) | public Rooms() { method getRooms (line 19) | public List getRooms() { method setRooms (line 23) | public void setRooms(List rooms) { method toString (line 27) | @Override FILE: report/src/main/java/com/automationintesting/requests/BookingRequests.java class BookingRequests (line 8) | public class BookingRequests { method BookingRequests (line 12) | public BookingRequests() { method getBookings (line 20) | public Bookings getBookings(int roomId, String token){ method getBookingSummaries (line 31) | public BookingSummaries getBookingSummaries(int roomId){ FILE: report/src/main/java/com/automationintesting/requests/RoomRequests.java class RoomRequests (line 7) | public class RoomRequests { method RoomRequests (line 11) | public RoomRequests() { method searchForRooms (line 19) | public Rooms searchForRooms(){ method searchForSpecificRoom (line 25) | public Room searchForSpecificRoom(String id){ FILE: report/src/main/java/com/automationintesting/service/ReportService.java class ReportService (line 17) | @Service method ReportService (line 23) | public ReportService() { method getAllRoomsReport (line 28) | public Report getAllRoomsReport(String token) { method getSpecificRoomReport (line 44) | public Report getSpecificRoomReport(int roomId) { FILE: report/src/test/java/com/automationintesting/integration/BuildReportIT.java class BuildReportIT (line 21) | @ExtendWith(SpringExtension.class) method setupRestito (line 30) | @BeforeEach method stopServer (line 53) | @AfterEach method testReportCreation (line 63) | @Test method testSpecificRoomReportCreation (line 72) | @Test FILE: report/src/test/java/com/automationintesting/unit/service/ReportServiceTest.java class ReportServiceTest (line 24) | public class ReportServiceTest { method initialiseMocks (line 36) | @BeforeEach method getAllRoomReportTest (line 80) | @Test method getSpecificRoomReportTest (line 87) | @Test FILE: room/src/main/java/com/automationintesting/api/RoomApplication.java class RoomApplication (line 7) | @SpringBootApplication method main (line 11) | public static void main(String[] args) { FILE: room/src/main/java/com/automationintesting/api/RoomController.java class RoomController (line 16) | @RestController method getRooms (line 22) | @RequestMapping(value = "/", method = RequestMethod.GET) method getRoom (line 35) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.GET) method createRoom (line 42) | @RequestMapping(value = "/", method = RequestMethod.POST) method deleteRoom (line 49) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.DELETE) method updateRoom (line 56) | @RequestMapping(value = "/{id:[0-9]*}", method = RequestMethod.PUT) FILE: room/src/main/java/com/automationintesting/api/SwaggerConfig.java class SwaggerConfig (line 9) | @Configuration method openAPI (line 12) | @Bean method publicApi (line 18) | @Bean FILE: room/src/main/java/com/automationintesting/db/InsertSql.java class InsertSql (line 10) | public class InsertSql { method InsertSql (line 14) | InsertSql(Connection connection, Room room) throws SQLException { method getPreparedStatement (line 30) | public PreparedStatement getPreparedStatement() { FILE: room/src/main/java/com/automationintesting/db/RoomDB.java class RoomDB (line 20) | @Component method RoomDB (line 32) | public RoomDB() throws SQLException, IOException { method create (line 56) | public Room create(Room room) throws SQLException { method query (line 79) | public Room query(int id) throws SQLException { method delete (line 89) | public Boolean delete(int bookingid) throws SQLException { method update (line 97) | public Room update(int id, Room room) throws SQLException { method queryRooms (line 117) | public List queryRooms() throws SQLException { method seedDB (line 130) | public void seedDB() throws IOException, SQLException { method executeSqlFile (line 140) | private void executeSqlFile(String filename) throws IOException, SQLEx... FILE: room/src/main/java/com/automationintesting/db/UpdateSql.java class UpdateSql (line 10) | public class UpdateSql { method UpdateSql (line 14) | UpdateSql(Connection connection, int id, Room room) throws SQLException { method getPreparedStatement (line 31) | public PreparedStatement getPreparedStatement() { FILE: room/src/main/java/com/automationintesting/model/db/Room.java class Room (line 11) | @Entity method Room (line 44) | public Room() { method Room (line 47) | public Room(String roomName, String type, boolean accessible, String i... method Room (line 57) | public Room(int roomid, String roomName, String type, boolean accessib... method Room (line 68) | public Room(ResultSet result) throws SQLException { method getRoomid (line 87) | public int getRoomid() { method setRoomid (line 91) | public void setRoomid(int roomid) { method getRoomName (line 95) | public String getRoomName() { method setRoomName (line 99) | public void setRoomName(String roomName) { method getType (line 103) | public String getType() { method setType (line 107) | public void setType(String type) { method isAccessible (line 111) | public boolean isAccessible() { method setAccessible (line 115) | public void setAccessible(boolean accessible) { method getDescription (line 119) | public String getDescription() { method setDescription (line 123) | public void setDescription(String details) { method getImage (line 127) | public String getImage() { method setImage (line 131) | public void setImage(String image) { method getFeatures (line 135) | public String[] getFeatures() { method setFeatures (line 139) | public void setFeatures(String[] features) { method getRoomPrice (line 143) | public int getRoomPrice() { method setRoomPrice (line 147) | public void setRoomPrice(int roomPrice) { method toString (line 151) | @Override class RoomBuilder (line 165) | public static class RoomBuilder { method setRoomName (line 175) | public RoomBuilder setRoomName(String roomName) { method setType (line 181) | public RoomBuilder setType(String type) { method setAccessible (line 187) | public RoomBuilder setAccessible(boolean accessible) { method setImage (line 193) | public RoomBuilder setImage(String image) { method setDescription (line 199) | public RoomBuilder setDescription(String description) { method setFeatures (line 205) | public RoomBuilder setFeatures(String[] features) { method setRoomPrice (line 211) | public RoomBuilder setRoomPrice(int roomPrice) { method build (line 217) | public Room build(){ FILE: room/src/main/java/com/automationintesting/model/db/Rooms.java class Rooms (line 7) | public class Rooms { method Rooms (line 12) | public Rooms(List rooms) { method Rooms (line 16) | public Rooms() { method getRooms (line 19) | public List getRooms() { method setRooms (line 23) | public void setRooms(List rooms) { method toString (line 27) | @Override FILE: room/src/main/java/com/automationintesting/model/request/Token.java class Token (line 5) | public class Token { method Token (line 10) | public Token() { method Token (line 13) | public Token(String token) { method getToken (line 17) | public String getToken() { method setToken (line 21) | public void setToken(String token) { FILE: room/src/main/java/com/automationintesting/model/request/UnavailableRoom.java class UnavailableRoom (line 5) | public class UnavailableRoom { method UnavailableRoom (line 10) | public UnavailableRoom(int roomid) { method getRoomid (line 14) | public int getRoomid() { method setRoomid (line 18) | public void setRoomid(int roomid) { method UnavailableRoom (line 22) | public UnavailableRoom() { method toString (line 25) | @Override FILE: room/src/main/java/com/automationintesting/model/service/RoomResult.java class RoomResult (line 6) | public class RoomResult { method RoomResult (line 12) | public RoomResult(HttpStatus httpStatus, Room room) { method RoomResult (line 17) | public RoomResult(HttpStatus httpStatus) { method getHttpStatus (line 21) | public HttpStatus getHttpStatus() { method getRoom (line 25) | public Room getRoom() { FILE: room/src/main/java/com/automationintesting/requests/AuthRequests.java class AuthRequests (line 10) | public class AuthRequests { method AuthRequests (line 14) | public AuthRequests() { method postCheckAuth (line 22) | public boolean postCheckAuth(String tokenValue){ FILE: room/src/main/java/com/automationintesting/requests/BookingRequests.java class BookingRequests (line 10) | public class BookingRequests { method BookingRequests (line 14) | public BookingRequests() { method getUnavailableRooms (line 22) | public List getUnavailableRooms(String checkInDate, S... FILE: room/src/main/java/com/automationintesting/service/DatabaseScheduler.java class DatabaseScheduler (line 12) | @Component method DatabaseScheduler (line 19) | public DatabaseScheduler() { method startScheduler (line 27) | public void startScheduler(RoomDB roomDB, TimeUnit timeUnit){ method getResetCount (line 49) | public int getResetCount() { method stepScheduler (line 53) | public void stepScheduler() { FILE: room/src/main/java/com/automationintesting/service/MethodArgumentNotValidExceptionHandler.java class MethodArgumentNotValidExceptionHandler (line 15) | @ControllerAdvice method handleMethodArgumentNotValidException (line 18) | @ExceptionHandler(MethodArgumentNotValidException.class) class Error (line 35) | public static class Error{ method Error (line 41) | public Error(HttpStatus status, String message, List fieldEr... method getErrorCode (line 48) | public int getErrorCode() { method setErrorCode (line 52) | public void setErrorCode(int errorCode) { method getError (line 56) | public String getError() { method setError (line 60) | public void setError(String error) { method getErrorMessage (line 64) | public String getErrorMessage() { method setErrorMessage (line 68) | public void setErrorMessage(String errorMessage) { method getFieldErrors (line 72) | public List getFieldErrors() { method setFieldErrors (line 76) | public void setFieldErrors(List fieldErrors) { FILE: room/src/main/java/com/automationintesting/service/RoomService.java class RoomService (line 20) | @Service method RoomService (line 30) | @Autowired method beginDbScheduler (line 36) | @EventListener(ApplicationReadyEvent.class) method getRooms (line 42) | public Rooms getRooms() throws SQLException { method getSpecificRoom (line 46) | public RoomResult getSpecificRoom(int roomId) throws SQLException { method createRoom (line 56) | public RoomResult createRoom(Room roomToCreate, String token) throws S... method deleteRoom (line 66) | public RoomResult deleteRoom(int roomId, String token) throws SQLExcep... method updateRoom (line 78) | public RoomResult updateRoom(int roomId, Room roomToUpdate, String tok... method getUnavailableRooms (line 92) | public Rooms getUnavailableRooms(String checkin, String checkout) thro... FILE: room/src/main/resources/db.sql type ROOMS (line 1) | CREATE TABLE ROOMS ( roomid int NOT NULL AUTO_INCREMENT, room_name varch... FILE: room/src/test/java/com/automationintesting/integration/RoomValidationIT.java class RoomValidationIT (line 23) | @ExtendWith(SpringExtension.class) method setupRestito (line 30) | @BeforeEach method stopServer (line 37) | @AfterEach method testPostValidation (line 45) | @Test method testPutValidation (line 58) | @Test method testGetRooms (line 72) | @Test method testRoomAvailability (line 83) | @Test FILE: room/src/test/java/com/automationintesting/unit/examples/BaseTest.java class BaseTest (line 9) | public class BaseTest { method createRoomDB (line 24) | @BeforeAll FILE: room/src/test/java/com/automationintesting/unit/examples/SqlTest.java class SqlTest (line 15) | public class SqlTest extends BaseTest { method resetDB (line 24) | @BeforeEach method testQueryRoom (line 48) | @Test method testDeleteRoom (line 64) | @Test method testQueryRooms (line 71) | @Test method testCreateRoom (line 80) | @Test method testUpdateRoom (line 97) | @Test FILE: room/src/test/java/com/automationintesting/unit/service/RoomServiceTest.java class RoomServiceTest (line 26) | public class RoomServiceTest { method initialiseMocks (line 41) | @BeforeEach method getRoomsTest (line 46) | @Test method getSpecificRoomTest (line 60) | @Test method getSpecificRoomNotFoundTest (line 72) | @Test method createRoomTest (line 81) | @Test method createRoomNotAuthorisedTest (line 94) | @Test method deleteRoomTest (line 105) | @Test method deleteRoomNotFoundTest (line 115) | @Test method deleteRoomNotAuthenticatedTest (line 125) | @Test method updateRoomTest (line 134) | @Test method updateRoomNotFoundTest (line 147) | @Test method updateRoomNotAuthorisedTest (line 159) | @Test method getAvailableRoomsTest (line 170) | @Test