-
Notifications
You must be signed in to change notification settings - Fork 1
Testing Documentation
matteo-barbieri edited this page Oct 10, 2020
·
3 revisions
- Travis CI automatically runs the gradle build upon every commit to the github repository.
- Gradle build runs the test suite which contains TestArtseePersistence.java
- Clear database
- Test Address object persistence with test data
- Clear database
- Test Administrator object persistence with test data
- Clear database
- Test Artist object persistence with test data
- Clear database
- Test Customer object persistence with test data
- Clear database
- Test Artwork object persistence with test data
- Clear database
- Test Review object persistence with test data
- Clear database
- Test ArtworkOrder object persistence with test data
- Clear database
- Create Address object with listed test data
- addressID = 1
- addressLine1 = 123 Test st.
- addressLine2 = Apt 102
- city = testCity
- province = testProvince
- postalCode = A1B2C3
- country = Canada
- Save created Address object to Database.
- Retrieve Address object from Database.
- Check that the retrieved object exists (assertNotNull).
- Check that all attributes of retrieved object equals the attributes of the object that were set in step 1 (AssertEquals).
- If steps 4 & 5 are true, Test Passes
- Clear the entire database
ALL TESTS FOR ALL OBJECT TYPES PASSED
Need to set the environment for the following 3 files:
- project-group-15/Artsee-Backend/src/main/java/com/artsee/backend/ArtseeApplication.java
- project-group-15/Artsee-Backend/src/test/java/com/artsee/backend/ArtseeApplicationTests.java
- project-group-15/Artsee-Backend/src/test/java/com/artsee/backend/dao/TestArtseePersistance.java
Variable: SPRING_DATASOURCE_URL
Value: Your Heroku Database URL in the following format: jdbc:postgresql://:/<DATABASE_NAME>?user=&password=&sslmode=require
Group 15 Ragheed Qasmieh, Daniel Schwartz, Matt Langshur, Enan Ashaduzzaman, Matteo Barbieri