From 22070c8ba8d6e0e935af440d98b16fc5d1dfaab4 Mon Sep 17 00:00:00 2001 From: Yana999 Date: Mon, 25 Oct 2021 20:17:10 +0300 Subject: [PATCH] The test task for interns --- test/.idea/workspace.xml | 95 ++++++++++++++ test/test/HELP.md | 18 +++ .../target/classes/application.properties | 7 ++ .../abdramanova/test/TestApplication.class | Bin 0 -> 741 bytes .../test/configuration/AppConfig.class | Bin 0 -> 519 bytes .../test/controllers/SocksController.class | Bin 0 -> 3353 bytes .../com/abdramanova/test/entities/Socks.class | Bin 0 -> 2088 bytes .../test/repositories/SocksRepository.class | Bin 0 -> 1164 bytes .../test/services/SocksService.class | Bin 0 -> 3079 bytes .../target/classes/db/migration/V1__init.sql | 19 +++ .../test/TestApplicationTests.class | Bin 0 -> 539 bytes test/test/test.iml | 117 ++++++++++++++++++ 12 files changed, 256 insertions(+) create mode 100644 test/.idea/workspace.xml create mode 100644 test/test/HELP.md create mode 100644 test/test/target/classes/application.properties create mode 100644 test/test/target/classes/com/abdramanova/test/TestApplication.class create mode 100644 test/test/target/classes/com/abdramanova/test/configuration/AppConfig.class create mode 100644 test/test/target/classes/com/abdramanova/test/controllers/SocksController.class create mode 100644 test/test/target/classes/com/abdramanova/test/entities/Socks.class create mode 100644 test/test/target/classes/com/abdramanova/test/repositories/SocksRepository.class create mode 100644 test/test/target/classes/com/abdramanova/test/services/SocksService.class create mode 100644 test/test/target/classes/db/migration/V1__init.sql create mode 100644 test/test/target/test-classes/com/abdramanova/test/TestApplicationTests.class create mode 100644 test/test/test.iml 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 0000000000000000000000000000000000000000..9088eaa894713408e609630cc9356ca5a6532876 GIT binary patch literal 741 zcma)4OHbQC5dJnKIE1u7c(n9!s8m%U2lj%v1R+5rPNqc!rH7u@&SDnq-DtfA{uU#i4X(W_%<(Urt&|Yz<9eV|k$bge&hD-}G!TtRENJsZ5Sk zuKcUDHm=+V)$dLvt6YO9oFUdqw&d$l_Gv#A*82E?fbPYAH86iMBp1lyq#5Z(?-uN) z3@?)OVNl5u$@WVEI#?!a4l7tC5MR7qf&tA=(7VIj-?w^yoS-`jFkiuFVhx|j|C#;< SkxQzE^-_MpSJJ-iH{coibHHu@ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..ba5466813f2b9563fe5d498192329b6373b83f48 GIT binary patch literal 519 zcmb7BJx{|h5Pfc&wv^JAQU*pgKqy`i3ka#I#1w%gdQ9n?^7q0xnhCc|JUR)Qx&$NWBA%E&P^ua#ErhM|6P zI%}cLa2}bIi*Rm5Dzu?|Cv(RmqZcYJtZ>R`KF+d9_`1Eu9%k%rPfiZCJ1 zFffrwX2Pn{UOOA^S>+6Vunou+LuYCV8_8Q${@mNZ`z0ZUqlZE}mCBjQ6=99FHm+)v zpe_SrW1eSL>3Bh$X75L?{3_?5W7q-HMhCm<|YDrcG&)k9(m`rzc5!Sxf?d#g90UX333&SxS#u0&J z_of1aPO+E?)+E5yIj;1St6W)+n;L&);h4Y$KPcH@C2+mc29GMA`@xpIsZ_;Y zm0`vALU~);?ers#cP)&>FpA>>WBZ!jqit3>su~JJG7kjKrMuAO`H$kHM(UI~K{qBE zvN+z4;k3@Ee>t=Eb%4maa1dPY7~>xY?R= zjo+!R3O}A>UJHJac^yi-o?NbO=Vh?wi zhS*evttF>YN1;FKmOQpu!1S_jIlY%x=+1P-HI2P&9Vc($$TKbH+#O#!&UDutyDM8LcHX#aBMj$Gr~=3J zRA?{zYPni2)Bo8wD=xWSs+YF~^Y{PS&bJNiqQJGTbFZ_`(1}S6Wc_MTkat`?Vvp^) zMqJW_5SZxbJmk2Oz9PbQ^Ws5|og1K~omvK*=`7w9ba!>0jh$M&euQS1_t|EE;S8@$ z5!R3Y?e)cpt6r{ou1+#5z|R?kVK(Inj*a0`dBSDLtfAbEYPFM2SW) zhR8oiSQu}>IMhRTpd--5E}V}W{Q8nI4PydP4dYiNIV0;A!+x!?zKM_(^$x15jlk`Ew5+UXYIb-vt5rnjrNVDUE>%> z`__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m}$l)GO0-xgx zgni{PN-N{-$)R5nZD^}+4xpEA_WBkEYEpp(1wla(xKF7zmOPgS$_%f*9A4ul+RBGLK_E@FSE>;vDiQ_$(Q9mJAemCm?BK7a}i_j-qe( zRq=x7fVm>Kin(rzE%3J}u>_Nw<$Bn!g0P>e=&JZy1z5$JimD2Gr?7Kd0R~|QB>aFu z^+53v+!SkkGeD2X(r~hUx{%NlVI>k5;KJJ{LZ+E6U_ZEgU}hm zNmOtO-{3U9B|)kbYh>N4ll8Pt*3%}kx)6GaWs>y*1OLj@3QCChrS=_}iqJ_a)q8CN z*S`&C t*xadZNui9#w575gL8!maN8TN#C@2Iz25NQfw90u1E(JpH>aA1({sB`a3M&8r literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..558bdf77052a6c32b98f2a00533984ac4b87f778 GIT binary patch literal 539 zcma)2!A=4(5Pby{1r$UtBpy79B=%ywU`)`&(?$~^+`CJ~;%>X?cGchVWa7aO@S}{= zf{BS9?BPvk=Dq3keSE&X131B60~J*3sI{<$b%xGDJPMu)J?A&^LMD!3{Y+`)&KatQ z{b?N=4E@ApT*NagGNBFeoh%%m5RCFXRf%xQXrC4gwM#RT4DCp1d0l3)v=b4hROv=0 z5$RM|g`9y&iSIG z4-w|dNy|m9!tOMwF*c=5-dJKJeHWxAbDQ5g!M} z1=anqAr4R{zy0w@j)P&7Zk!_Xm7`a%m(Xqy`Zh??By24S6t^e?wy9eQ;sIrz_e + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file