diff --git a/test/.idea/workspace.xml b/test/.idea/workspace.xml new file mode 100644 index 00000000..0fb2a065 --- /dev/null +++ b/test/.idea/workspace.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1635006892093 + + + + + + \ No newline at end of file diff --git a/test/test/HELP.md b/test/test/HELP.md new file mode 100644 index 00000000..f80a2da7 --- /dev/null +++ b/test/test/HELP.md @@ -0,0 +1,18 @@ +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) +* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.5.5/maven-plugin/reference/html/) +* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.5.5/maven-plugin/reference/html/#build-image) +* [Spring Web](https://docs.spring.io/spring-boot/docs/2.5.6/reference/htmlsingle/#boot-features-developing-web-applications) +* [Flyway Migration](https://docs.spring.io/spring-boot/docs/2.5.6/reference/htmlsingle/#howto-execute-flyway-database-migrations-on-startup) + +### Guides +The following guides illustrate how to use some features concretely: + +* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) +* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) +* [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/) + diff --git a/test/test/target/classes/application.properties b/test/test/target/classes/application.properties new file mode 100644 index 00000000..5e8ad122 --- /dev/null +++ b/test/test/target/classes/application.properties @@ -0,0 +1,7 @@ +server.port = 8080 +server.servlet.context-path=/api + +spring.datasource.driver-class-name=org.postgresql.Driver +spring.datasource.url=jdbc:postgresql://localhost:5432/postgres?currentSchema=boot +spring.datasource.username=postgres +spring.datasource.password=6132326 \ No newline at end of file diff --git a/test/test/target/classes/com/abdramanova/test/TestApplication.class b/test/test/target/classes/com/abdramanova/test/TestApplication.class new file mode 100644 index 00000000..9088eaa8 Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/TestApplication.class differ diff --git a/test/test/target/classes/com/abdramanova/test/configuration/AppConfig.class b/test/test/target/classes/com/abdramanova/test/configuration/AppConfig.class new file mode 100644 index 00000000..ba546681 Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/configuration/AppConfig.class differ diff --git a/test/test/target/classes/com/abdramanova/test/controllers/SocksController.class b/test/test/target/classes/com/abdramanova/test/controllers/SocksController.class new file mode 100644 index 00000000..4c029555 Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/controllers/SocksController.class differ diff --git a/test/test/target/classes/com/abdramanova/test/entities/Socks.class b/test/test/target/classes/com/abdramanova/test/entities/Socks.class new file mode 100644 index 00000000..1b2748a8 Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/entities/Socks.class differ diff --git a/test/test/target/classes/com/abdramanova/test/repositories/SocksRepository.class b/test/test/target/classes/com/abdramanova/test/repositories/SocksRepository.class new file mode 100644 index 00000000..fdd60e2c Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/repositories/SocksRepository.class differ diff --git a/test/test/target/classes/com/abdramanova/test/services/SocksService.class b/test/test/target/classes/com/abdramanova/test/services/SocksService.class new file mode 100644 index 00000000..9c614ccf Binary files /dev/null and b/test/test/target/classes/com/abdramanova/test/services/SocksService.class differ diff --git a/test/test/target/classes/db/migration/V1__init.sql b/test/test/target/classes/db/migration/V1__init.sql new file mode 100644 index 00000000..e25e96cc --- /dev/null +++ b/test/test/target/classes/db/migration/V1__init.sql @@ -0,0 +1,19 @@ +CREATE TABLE socks ( + id serial, + color text NOT NULL, + cotton int NOT NULL, + quantity int NOT NULL, + PRIMARY KEY(id) +); + +INSERT INTO socks (color, cotton, quantity) +VALUES +('Red', 40, 3), +('Black', 90, 19), +('White', 20,1), +('Black', 40, 13), +('Black', 67,3); + + + + diff --git a/test/test/target/test-classes/com/abdramanova/test/TestApplicationTests.class b/test/test/target/test-classes/com/abdramanova/test/TestApplicationTests.class new file mode 100644 index 00000000..558bdf77 Binary files /dev/null and b/test/test/target/test-classes/com/abdramanova/test/TestApplicationTests.class differ diff --git a/test/test/test.iml b/test/test/test.iml new file mode 100644 index 00000000..5e670764 --- /dev/null +++ b/test/test/test.iml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file