-
Notifications
You must be signed in to change notification settings - Fork 156
The test task for interns #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Yana999
wants to merge
1
commit into
Raiffeisen-DGTL:main
Choose a base branch
from
Yana999:abdramanovaTask
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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/) | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
Binary file added
BIN
+741 Bytes
test/test/target/classes/com/abdramanova/test/TestApplication.class
Binary file not shown.
Binary file added
BIN
+519 Bytes
test/test/target/classes/com/abdramanova/test/configuration/AppConfig.class
Binary file not shown.
Binary file added
BIN
+3.27 KB
test/test/target/classes/com/abdramanova/test/controllers/SocksController.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.14 KB
test/test/target/classes/com/abdramanova/test/repositories/SocksRepository.class
Binary file not shown.
Binary file added
BIN
+3.01 KB
test/test/target/classes/com/abdramanova/test/services/SocksService.class
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. в идеальном мире к init относится только создание таблицы |
||
| VALUES | ||
| ('Red', 40, 3), | ||
| ('Black', 90, 19), | ||
| ('White', 20,1), | ||
| ('Black', 40, 13), | ||
| ('Black', 67,3); | ||
|
|
||
|
|
||
|
|
||
|
|
||
Binary file added
BIN
+539 Bytes
test/test/target/test-classes/com/abdramanova/test/TestApplicationTests.class
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
| <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
| <output url="file://$MODULE_DIR$/target/classes" /> | ||
| <output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
| <content url="file://$MODULE_DIR$"> | ||
| <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
| <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||
| <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
| <excludeFolder url="file://$MODULE_DIR$/${project.build.directory}/classes" /> | ||
| <excludeFolder url="file://$MODULE_DIR$/${project.build.directory}/test-classes" /> | ||
| <excludeFolder url="file://$MODULE_DIR$/target" /> | ||
| </content> | ||
| <orderEntry type="inheritedJdk" /> | ||
| <orderEntry type="sourceFolder" forTests="false" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.6" level="project" /> | ||
| <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.6" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.14.1" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.14.1" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.32" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.28" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.53" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.0.Final" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.2.Final" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.12.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.53" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.53" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-thymeleaf:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf-spring5:3.0.12.RELEASE" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.thymeleaf:thymeleaf:3.0.12.RELEASE" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.attoparser:attoparser:2.0.5.RELEASE" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.unbescape:unbescape:1.1.6.RELEASE" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.32" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.flywaydb:flyway-core:7.7.3" level="project" /> | ||
| <orderEntry type="library" scope="RUNTIME" name="Maven: org.postgresql:postgresql:42.2.23" level="project" /> | ||
| <orderEntry type="library" scope="RUNTIME" name="Maven: org.checkerframework:checker-qual:3.5.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.5.5" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.5.5" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.5.5" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.5.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.4.7" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:2.4.7" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:9.1" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.activation:jakarta.activation-api:1.2.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.19.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.7.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:3.9.0" level="project" /> | ||
| <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.10.22" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.10.22" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:3.2" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:3.9.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.10" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.3.10" level="project" /> | ||
| <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.8.2" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jdbc:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jdbc:2.2.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.data:spring-data-relational:2.2.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.7" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.transaction:jakarta.transaction-api:1.3.3" level="project" /> | ||
| <orderEntry type="library" name="Maven: jakarta.persistence:jakarta.persistence-api:2.2.3" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.4.32.Final" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.javassist:javassist:3.27.0-GA" level="project" /> | ||
| <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.jboss:jandex:2.2.3.Final" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.dom4j:dom4j:2.1.3" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.1.2.Final" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.glassfish.jaxb:jaxb-runtime:2.3.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.glassfish.jaxb:txw2:2.3.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: com.sun.istack:istack-commons-runtime:3.0.12" level="project" /> | ||
| <orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.activation:jakarta.activation:1.2.2" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:2.5.5" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-orm:5.3.10" level="project" /> | ||
| <orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.3.10" level="project" /> | ||
| </component> | ||
| </module> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
судя по структуре таблицы - quantity хранит в себе количество пар, хотя если удалить это поле из модели и добавлять quantity пар носков при приходе и удалять при отпуске, то не нужно будет вести сложную логику по изменению quantity и следить, чтобы каждый раз всякий, кто хочет написать код - менял это значение при отпуске/приходе пар носков