From 3366743140e3cc4da4e09130cd2958c447aaa86c Mon Sep 17 00:00:00 2001 From: Akshat Jain Date: Tue, 25 Jun 2024 14:38:08 +0530 Subject: [PATCH] Added total 198 replay cases --- src/test/python/replay_target.py | 148 +++++++++++++++++++++++++++---- 1 file changed, 131 insertions(+), 17 deletions(-) diff --git a/src/test/python/replay_target.py b/src/test/python/replay_target.py index 9b92f03d..33ac90ef 100644 --- a/src/test/python/replay_target.py +++ b/src/test/python/replay_target.py @@ -54,8 +54,20 @@ def replay_target (target): "/src/main/java/org/unlogged/demo/UnloggedDemoApplication.java", buildSystem.MAVEN, [ + ReplayTest("org.unlogged.demo.controller.CustomerController.saveCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.CustomerController.removeCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.CustomerController.generateNeReferralCode - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.CustomerController.isCustomerEligibleForLoyaltyProgram - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.CustomerController.getDummyProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.CustomerController.getScoreMaps - normal", TestResult.PASS), ReplayTest("FutureController.getFutureResult - normal", TestResult.PASS), ReplayTest("FutureController.getFutureResultOptional - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.GreetingController.getGreeting - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.InternalClassController.getL1Object - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.InternalClassController.getMapValue - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.InternalClassController.getTimeObjects - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.InternalClassController.returnChar - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.InternalClassController.cmm - normal", TestResult.PASS), ReplayTest("ModelMapperOpsController.getDefaultModel - normal", TestResult.PASS), ReplayTest("ModelMapperOpsController.getUserModelMiniDto - normal", TestResult.PASS), ReplayTest("ModelMapperOpsController.getUserModelMiniDto - call from ModelMapper mocked", TestResult.PASS), @@ -68,8 +80,6 @@ def replay_target (target): ReplayTest("MongoOpsController.getById - normal", TestResult.PASS), ReplayTest("MongoOpsController.updatePojo - normal", TestResult.PASS), ReplayTest("MongoOpsController.deleteById - normal", TestResult.PASS), - ReplayTest("FutureService.doSomething - normal", TestResult.PASS), - ReplayTest("FutureService.doSomethingOptional - normal", TestResult.PASS), ReplayTest("OptionalOpsController.getDefaultUser - normal", TestResult.PASS), ReplayTest("OptionalOpsController.getEmptyOptionalUser - normal", TestResult.PASS), ReplayTest("OptionalOpsController.create1 - normal", TestResult.PASS), @@ -84,11 +94,19 @@ def replay_target (target): ReplayTest("OptionalOpsController.countNameLength - normal", TestResult.PASS), ReplayTest("OptionalOpsController.flatMapUsage - normal", TestResult.PASS), ReplayTest("OptionalOpsController.chain - normal", TestResult.PASS), - ReplayTest("VarOpsController.primitivesWrapped - normal", TestResult.PASS), - ReplayTest("VarOpsController.getAUser - normal", TestResult.PASS), - ReplayTest("VarOpsController.varListAndMap - normal", TestResult.PASS), - ReplayTest("VarOpsController.getAsResponseEntity - normal", TestResult.PASS), - ReplayTest("VarOpsController.getCustomers - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.RecursionController.getIsPalindrome - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.RecursionController.getFibonacciSeries - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.RecursionController.isPalindrome - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.RecursionController.factorial - normal", TestResult.PASS), + ReplayTest("ResponseEntityOps.getOkString - normal", TestResult.PASS), + ReplayTest("ResponseEntityOps.getOkUser - normal", TestResult.PASS), + ReplayTest("ResponseEntityOps.getUserOf - normal", TestResult.PASS), + ReplayTest("ResponseEntityOps.createWithCode - normal", TestResult.PASS), + ReplayTest("SealedOpsController.getSquare - normal", TestResult.PASS), + ReplayTest("SealedOpsController.shapeSerial - normal", TestResult.PASS), + ReplayTest("SealedOpsController.getRectangle - normal", TestResult.PASS), + ReplayTest("SealedOpsController.getFilledRectangle - normal", TestResult.PASS), + ReplayTest("SealedOpsController.getCircle - normal", TestResult.PASS), ReplayTest("StreamOpsController.getUserGroups - normal", TestResult.PASS), ReplayTest("StreamOpsController.getUserList - normal", TestResult.PASS), ReplayTest("StreamOpsController.forEachRun - normal", TestResult.PASS), @@ -109,20 +127,20 @@ def replay_target (target): ReplayTest("StreamOpsController.reduceUsage - normal", TestResult.PASS), ReplayTest("StreamOpsController.getSortedIdOrder - normal missing symbols", TestResult.PASS), ReplayTest("StreamOpsController.groupBy - normal", TestResult.PASS), - ReplayTest("ResponseEntityOps.getOkString - normal", TestResult.PASS), - ReplayTest("ResponseEntityOps.getOkUser - normal", TestResult.PASS), - ReplayTest("ResponseEntityOps.getUserOf - normal", TestResult.PASS), - ReplayTest("ResponseEntityOps.createWithCode - normal", TestResult.PASS), - ReplayTest("SealedOpsController.getSquare - normal", TestResult.PASS), - ReplayTest("SealedOpsController.shapeSerial - normal", TestResult.PASS), - ReplayTest("SealedOpsController.getRectangle - normal", TestResult.PASS), - ReplayTest("SealedOpsController.getFilledRectangle - normal", TestResult.PASS), - ReplayTest("SealedOpsController.getCircle - normal", TestResult.PASS), ReplayTest("ThreadingOpsController.executorServiceCallablesAny - normal", TestResult.PASS), ReplayTest("ThreadingOpsController.executorServiceRunnable - normal", TestResult.PASS), ReplayTest("ThreadingOpsController.scheduledThread - normal", TestResult.PASS), ReplayTest("ThreadingOpsController.scheduledThreadFixedRate - normal", TestResult.PASS), ReplayTest("ThreadingOpsController.scheduledThreadFixedDelay - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.ValidatorOpsController.isDefaultUserVaild - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.ValidatorOpsController.isUserValid - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.ValidatorOpsController.getValidUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.ValidatorOpsController.validateUserV2 - normal", TestResult.PASS), + ReplayTest("VarOpsController.primitivesWrapped - normal", TestResult.PASS), + ReplayTest("VarOpsController.getAUser - normal", TestResult.PASS), + ReplayTest("VarOpsController.varListAndMap - normal", TestResult.PASS), + ReplayTest("VarOpsController.getAsResponseEntity - normal", TestResult.PASS), + ReplayTest("VarOpsController.getCustomers - normal", TestResult.PASS), ReplayTest("PropertyControllerImpl.findAll - normal", TestResult.PASS), ReplayTest("PropertyControllerImpl.findById - normal mocked", TestResult.PASS), ReplayTest("PropertyControllerImpl.findById - normal integration", TestResult.PASS), @@ -132,12 +150,108 @@ def replay_target (target): ReplayTest("PropertyControllerImpl.insertNew - normal integration", TestResult.PASS), ReplayTest("PropertyControllerImpl.update - normal mocked", TestResult.PASS), ReplayTest("PropertyControllerImpl.update - normal integration", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.lcc.getSomeInt - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.networkintensive - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.databaseintensive - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.sum_natural - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.memoryIntensive - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.count_prime_calc - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.cpu - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.controller.perfAnalysis.ping - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.cron.ScheduledJobs.scheduleFixedDelayTask - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.cron.ScheduledJobs.cron1 - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.cron.ScheduledJobs.cron2Greet - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.CustomObjectInputFilter.checkInput - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.CustomObjectInputFilter.checkInput - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.CustomObjectInputFilter.checkInput - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.CustomObjectInputFilter.checkInput - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.CustomObjectInputFilter.checkInput - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectWithMergedFilters - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectNotAllowed - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectWithRejectFilter - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectUndecided - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObject1 - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectWithAllowFilter - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.deserializeObjectRejectUndecided - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.serializeObject - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.serializeObject - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.serializeObject - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.deserializationfilter.DeserializationController.serializeObject - normal", TestResult.PASS), ReplayTest("GlobalFilter.getGlobalFilterAdditive - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ApiHelper.WeatherApi.getWeatherinfo - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.Alpha.getY - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.Beta.e - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.BigObjController.getListofBigPojos - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.BigObjController.getOrderedList - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.saveCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.getCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.removeCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.addNewContactNumber - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.generateNeReferralCode - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.CustomerRes.isCustomerEligibleForLoyaltyProgram - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.GcdController.gcdOfTwoNumbers - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.GcdController.getNull - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.ThirdPartyController.getResponse - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.ThirdPartyController.getWeatherForBangalore - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.getBool - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.a - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.getTestPojo - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.jodatest - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.getInstant - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.getDeepClass - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.getTestText - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.saveUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.saveUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Controllers.UserController.testFetchUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.fetchCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Dao.CustomerProfileDao.removeCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ReferralUtils.generateReferralCode - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.SerializationUtils.getObjectFor - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.SerializationUtils.getObjectFor - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.generateReferralCodes - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.saveNewCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.fetchCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.removeCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.addNewContact - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.generateReferralForCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.CustomerService.isCustomerEligibleForPremium - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.UserService.many - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.UserService.getDeepClassList - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.Services.UserService.getUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ThirdPartyApiHelper.getWeatherinfo - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ThirdPartyApiHelper.getWeatherinfo - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ThirdPartyService.getWeatherFor - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.ThirdPartyService.getWeatherFor - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.UserInstanceDao.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.jspdemo.wfm.UserInstanceService.saveUser - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.repository.CustomerProfileRepository.save - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.repository.CustomerProfileRepository.removeCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.repository.CustomerProfileRepository.fetchCustomerProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.resttemplate.PostController.getPostById - unexpected failure", TestResult.PASS), + ReplayTest("org.unlogged.demo.resttemplate.PostsClient.findById - wrong assertions with extra char", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.generateReferralCodes - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.saveNewCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.removeCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.generateReferralForCustomer - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.isCustomerEligibleForPremium - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.getBackProfile - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.CustomerService.getDummyScoreMaps - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.DeepService.getDeepReference - normal", TestResult.PASS), + ReplayTest("FutureService.doSomething - normal", TestResult.PASS), + ReplayTest("FutureService.doSomethingOptional - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.WeatherService.getWeatherinfo - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.WeatherService.getWeatherForAddress - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.service.WeatherService.convertToObject - normal", TestResult.PASS), ReplayTest("PropertyServiceCEImpl.getAll - normal", TestResult.PASS), ReplayTest("PropertyServiceCEImpl.getById - normal", TestResult.PASS), ReplayTest("PropertyServiceCEImpl.deleteById - normal", TestResult.PASS), ReplayTest("PropertyServiceCEImpl.insertNew - normal", TestResult.PASS), - ReplayTest("PropertyServiceCEImpl.updateExisting - normal", TestResult.PASS) + ReplayTest("PropertyServiceCEImpl.updateExisting - normal", TestResult.PASS), + ReplayTest("org.unlogged.demo.utils.ReferralUtils.generateReferralCode - normal", TestResult.PASS) ] ), Target(