From 6628408c30afa0e8454366d76abd977748f23afd Mon Sep 17 00:00:00 2001 From: revengel66 Date: Sun, 19 May 2024 17:49:15 +0300 Subject: [PATCH] the end! --- data.mv.db | Bin 73728 -> 57344 bytes data.trace.db | 153 ++++++++++++++++++ .../com/example/demo/DemoApplication.java | 1 - .../example/demo/orders/api/OrdersDto.java | 1 - .../demo/orders/model/OrdersEntity.java | 2 - .../demo/orders/service/OrdersService.java | 1 - .../users/repository/UsersRepository.java | 2 - .../example/demo/CategoriesServiceTests.java | 1 - .../example/demo/UsersOrdersServiceTests.java | 19 ++- 9 files changed, 168 insertions(+), 12 deletions(-) diff --git a/data.mv.db b/data.mv.db index 43480df1e0051d0ef3d5239e6d7be1c7760f3ef5..ccfac270e33cea1fe018001814e3bc4f0c04d26a 100644 GIT binary patch literal 57344 zcmeHQ%WoV&NU&Hef<=&Hu>V1>`MRsRyQZgy?6F27 zCDi~k)!kE%ufD3T=kNE`W(zm{{lnn%R><7lJKv`*r0aS!`0W0{=Plc^n!!FL2QAbL zjwv~zVGFr53M|79480j09^WM=Eu;AbJ-&D6@E{2g?bDOsGkV0Tx*H6S%0H6S%0H6S%0H6S%0 zH6S%0H6S%0HSnY~z&815bDti-O285Ml-`5A{JZ2q3z>icxJ!;&M%X+)JcKQN7f=DZ zVOpWtJh^k1woGgg&(1dfY4d1*9} zt+zeUI-hiR2fJEhx82Zo+gk(eiXQovj(o!=$V0@Bu4tR>-A(O^VGtDPx{n;)Csen6 zVmpKc)U!?9v;!kV9(6FX9LMuL-$q2YoFKG4)21j6aYbvdUGMgkceHmFTU?Ue&W*iJ zZ?&T}cJ@}bx~q-l#%6b=)9=O7r+yt~Iok?nbvaNOIlV+uCZfe|qiforbo$+3vSj2cVam?f$K9 zZ{w<^FJ)dAmXyod+lzNo{q?#awiZXStF3|ly1mtb*6pozJ`pmqy4~9y^xKf+?c}f9 zc0=3li5>(g8%zuq<$AZjJ6KZQ(=IRmJ`@QEbxH<7t7}@GmKc9703^Ma2z`|$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.trace.db @@ -1637,3 +1637,156 @@ The connection was not closed by the application and is garbage collected [90018 at org.h2.message.DbException.getJdbcSQLException(DbException.java:690) at org.h2.message.DbException.getJdbcSQLException(DbException.java:489) ... 16 more +2024-05-17 17:49:11.274896+03:00 database: flush +org.h2.message.DbException: Внутренняя ошибка: "org.h2.mvstore.MVStoreException: The file is locked: C:/Users/New/Desktop/studing/IP/LABS/IP-Labs-4-semestr/data.mv.db [2.2.224/7]" +General error: "org.h2.mvstore.MVStoreException: The file is locked: C:/Users/New/Desktop/studing/IP/LABS/IP-Labs-4-semestr/data.mv.db [2.2.224/7]" [50000-224] + at org.h2.message.DbException.get(DbException.java:212) + at org.h2.message.DbException.convert(DbException.java:407) + at org.h2.mvstore.db.Store.lambda$new$0(Store.java:122) + at org.h2.mvstore.MVStore.handleException(MVStore.java:1546) + at org.h2.mvstore.MVStore.panic(MVStore.java:371) + at org.h2.mvstore.MVStore.(MVStore.java:291) + at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035) + at org.h2.mvstore.db.Store.(Store.java:133) + at org.h2.engine.Database.(Database.java:326) + at org.h2.engine.Engine.openSession(Engine.java:92) + at org.h2.engine.Engine.openSession(Engine.java:222) + at org.h2.engine.Engine.createSession(Engine.java:201) + at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:343) + at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:125) + at org.h2.Driver.connect(Driver.java:59) + at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) + at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359) + at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201) + at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470) + at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561) + at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:100) + at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) + at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) + at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:428) + at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:61) + at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:276) + at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:107) + at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) + at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130) + at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) + at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238) + at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215) + at org.hibernate.boot.model.relational.Database.(Database.java:45) + at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:223) + at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:191) + at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:170) + at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1432) + at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1503) + at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75) + at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390) + at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) + at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) + at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:326) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:324) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) + at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1234) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) + at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$3(SpringBootContextLoader.java:137) + at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58) + at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46) + at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1454) + at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:553) + at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:137) + at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:108) + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:225) + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:152) + at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:130) + at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:191) + at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:130) + at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260) + at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:163) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$10(ClassBasedTestDescriptor.java:378) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:383) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$11(ClassBasedTestDescriptor.java:378) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) + at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) + at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) + at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) + at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source) + at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source) + at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Unknown Source) + at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:377) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$6(ClassBasedTestDescriptor.java:290) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:289) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$4(ClassBasedTestDescriptor.java:279) + at java.base/java.util.Optional.orElseGet(Unknown Source) + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$5(ClassBasedTestDescriptor.java:278) + at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:106) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:105) + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:69) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$2(NodeTestTask.java:123) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:123) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:90) + at java.base/java.util.ArrayList.forEach(Unknown Source) + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) + at java.base/java.util.ArrayList.forEach(Unknown Source) + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) + at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) + at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102) + at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54) + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114) + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:95) + at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:91) + at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:60) + at org.eclipse.jdt.internal.junit5.runner.JUnit5TestReference.run(JUnit5TestReference.java:98) + at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:40) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:529) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:757) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:452) + at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210) +Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Внутренняя ошибка: "org.h2.mvstore.MVStoreException: The file is locked: C:/Users/New/Desktop/studing/IP/LABS/IP-Labs-4-semestr/data.mv.db [2.2.224/7]" +General error: "org.h2.mvstore.MVStoreException: The file is locked: C:/Users/New/Desktop/studing/IP/LABS/IP-Labs-4-semestr/data.mv.db [2.2.224/7]" [50000-224] + at org.h2.message.DbException.getJdbcSQLException(DbException.java:566) + at org.h2.message.DbException.getJdbcSQLException(DbException.java:489) + ... 138 more +Caused by: org.h2.mvstore.MVStoreException: The file is locked: C:/Users/New/Desktop/studing/IP/LABS/IP-Labs-4-semestr/data.mv.db [2.2.224/7] + at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996) + at org.h2.mvstore.SingleFileStore.lockFileChannel(SingleFileStore.java:143) + at org.h2.mvstore.SingleFileStore.open(SingleFileStore.java:117) + at org.h2.mvstore.SingleFileStore.open(SingleFileStore.java:81) + at org.h2.mvstore.MVStore.(MVStore.java:286) + ... 132 more diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java index ebe0dec..4943546 100644 --- a/src/main/java/com/example/demo/DemoApplication.java +++ b/src/main/java/com/example/demo/DemoApplication.java @@ -1,6 +1,5 @@ package com.example.demo; -import java.util.Calendar; import java.util.List; import java.util.Objects; diff --git a/src/main/java/com/example/demo/orders/api/OrdersDto.java b/src/main/java/com/example/demo/orders/api/OrdersDto.java index 8b291d4..da10b61 100644 --- a/src/main/java/com/example/demo/orders/api/OrdersDto.java +++ b/src/main/java/com/example/demo/orders/api/OrdersDto.java @@ -1,6 +1,5 @@ package com.example.demo.orders.api; -import java.text.SimpleDateFormat; import java.util.Date; import com.example.demo.products.model.ProductsEntity; diff --git a/src/main/java/com/example/demo/orders/model/OrdersEntity.java b/src/main/java/com/example/demo/orders/model/OrdersEntity.java index 3d3f4a3..00d7d44 100644 --- a/src/main/java/com/example/demo/orders/model/OrdersEntity.java +++ b/src/main/java/com/example/demo/orders/model/OrdersEntity.java @@ -1,9 +1,7 @@ package com.example.demo.orders.model; -import java.util.Calendar; import java.util.Date; import java.util.Objects; -import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; diff --git a/src/main/java/com/example/demo/orders/service/OrdersService.java b/src/main/java/com/example/demo/orders/service/OrdersService.java index f7e53b9..9b17efc 100644 --- a/src/main/java/com/example/demo/orders/service/OrdersService.java +++ b/src/main/java/com/example/demo/orders/service/OrdersService.java @@ -1,6 +1,5 @@ package com.example.demo.orders.service; -import java.util.Date; import java.util.List; import org.springframework.stereotype.Service; diff --git a/src/main/java/com/example/demo/users/repository/UsersRepository.java b/src/main/java/com/example/demo/users/repository/UsersRepository.java index b234333..31417ab 100644 --- a/src/main/java/com/example/demo/users/repository/UsersRepository.java +++ b/src/main/java/com/example/demo/users/repository/UsersRepository.java @@ -1,7 +1,6 @@ package com.example.demo.users.repository; import java.util.List; -import java.util.Optional; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.Query; @@ -13,7 +12,6 @@ import com.example.demo.users.model.UsersGrouped; public interface UsersRepository extends CrudRepository, PagingAndSortingRepository { - Optional findByLoginIgnoreCase(String login); @Query("SELECT user AS u, SUM(o.sum) AS totalSum " + "FROM OrdersEntity o " + diff --git a/src/test/java/com/example/demo/CategoriesServiceTests.java b/src/test/java/com/example/demo/CategoriesServiceTests.java index c96263c..75ef5db 100644 --- a/src/test/java/com/example/demo/CategoriesServiceTests.java +++ b/src/test/java/com/example/demo/CategoriesServiceTests.java @@ -9,7 +9,6 @@ import org.junit.jupiter.api.TestMethodOrder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import com.example.demo.core.error.NotFoundException; import com.example.demo.categories.service.CategoriesService; import com.example.demo.categories.model.CategoriesEntity; diff --git a/src/test/java/com/example/demo/UsersOrdersServiceTests.java b/src/test/java/com/example/demo/UsersOrdersServiceTests.java index 7068415..97b4b3a 100644 --- a/src/test/java/com/example/demo/UsersOrdersServiceTests.java +++ b/src/test/java/com/example/demo/UsersOrdersServiceTests.java @@ -8,13 +8,11 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.MethodOrderer.OrderAnnotation; -import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestMethodOrder; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import com.example.demo.core.error.NotFoundException; import com.example.demo.categories.model.CategoriesEntity; import com.example.demo.categories.service.CategoriesService; import com.example.demo.orders.model.OrdersEntity; @@ -54,7 +52,7 @@ class UsersOrdersServiceTests { category = categoriesService.create(new CategoriesEntity("Телефон")); - product = productsService.create(new ProductsEntity(category, "Iphone 13", 150000.00)); + product = productsService.create(new ProductsEntity(category, "Iphone 13", 1000.00)); user1 = usersService.create(new UsersEntity("Natalia", "1234")); user2 = usersService.create(new UsersEntity("Revengel", "4567")); @@ -65,7 +63,12 @@ class UsersOrdersServiceTests { new OrdersEntity(product, 1, "05.04.2024"), new OrdersEntity(product, 4, "03.04.2024")); orders.forEach(order -> ordersService.create(user1.getId(), order)); - + final var orders2 = List.of( + new OrdersEntity(product, 1, "03.04.2024"), + new OrdersEntity(product, 1, "02.04.2024"), + new OrdersEntity(product, 1, "05.04.2024"), + new OrdersEntity(product, 1, "03.04.2024")); + orders2.forEach(order -> ordersService.create(user2.getId(), order)); // order = ordersService.get(user1.getId(), 1); order = orders.get(0); } @@ -137,4 +140,12 @@ class UsersOrdersServiceTests { Assertions.assertNotEquals(user1.getId(), newEntity.getId()); } + @Test + void getFiveUsersTest() { + + Assertions.assertEquals(2, usersService.getFiveUsers().size()); + final Double sum2 = usersService.getFiveUsers().get(1).getTotalSum(); + Assertions.assertEquals(4000, sum2); + } + }