Skip to content

Files

Latest commit

 

History

History
31 lines (31 loc) · 8.73 KB

File metadata and controls

31 lines (31 loc) · 8.73 KB
1
Project NamePackage NameType NameMethod NameImplementation SmellCause of the SmellMethod start line noStatusJustification
2
.com.project.apidbtesterPutApiServiceTesttestFetchTestResult_AllTestPassedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"shubham"`true)});" is 171.65UnresolvedNeeded for mocking
3
.com.project.apidbtesterPutApiServiceTesttestFetchTestResult_SomeTestsFailedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"saif"`false)});" is 169.92UnresolvedNeeded for mocking
4
.com.project.apidbtesterGlobalExceptionHandlerTesttestHandleClientDBCredentialsNotFoundExceptionLong StatementThe length of the statement "ResponseEntity<ErrorResponse> response=globalExceptionHandler.handleExceptions(new ClientDBInfoService.ClientDBCredentialsNotFoundException());" is 143.43UnresolvedOccurred because of long exception name
5
.com.project.apidbtesterGlobalExceptionHandlerTesthandleClientDBConnectionExceptionTestLong StatementThe length of the statement "ResponseEntity<ErrorResponse> response=globalExceptionHandler.handleExceptions(new ClientDBInfoService.ClientDBConnectionException());" is 134.51Resolved
6
.com.project.apidbtesterGlobalExceptionHandlerTesttestHandleTestCaseNotFoundExceptionLong StatementThe length of the statement "ResponseEntity<ErrorResponse> response=globalExceptionHandler.handleExceptions(new TestCasesService.TestCaseNotFoundException());" is 129.59Resolved
7
.com.project.apidbtesterGlobalExceptionHandlerTesttestHandleTestCasesNotFoundExceptionLong StatementThe length of the statement "ResponseEntity<ErrorResponse> response=globalExceptionHandler.handleExceptions(new TestCasesService.TestCasesNotFoundException());" is 130.67Resolved
8
.com.project.apidbtesterGlobalExceptionHandlerTesttestHandleInvalidRequestTypeExceptionLong StatementThe length of the statement "ResponseEntity<ErrorResponse> response=globalExceptionHandler.handleExceptions(new TestApiController.InvalidRequestTypeException());" is 132.75UnresolvedOccurred because of long exception name
9
.com.project.apidbtesterPostApiServiceTesttestFetchTestResult_AllTestPassedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"shubham"`true)});" is 171.64UnresolvedNeeded for mocking
10
.com.project.apidbtesterPostApiServiceTesttestFetchTestResult_SomeTestsFailedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"saif"`false)});" is 169.94UnresolvedNeeded for mocking
11
.com.project.apidbtesterQueryTesttestGenerateSelectQueryWithWhereClauseLong StatementThe length of the statement "TestCaseDetails testCaseDetails=new TestCaseDetails(1`"type"`"url"`"payload"`"tableName"`"primaryKeyName"`"primaryKeyValue"`200`""`false);" is 138.23UnresolvedNeeded for constuctor call
12
.com.project.apidbtesterQueryTesttestGenerateSelectQueryWithWhereClauseLong StatementThe length of the statement "List<TestColumnValue> testColumnValues=Arrays.asList(new TestColumnValue(1`"column1"`"Hello1"`"Hello1"`false`testCaseDetails)`new TestColumnValue(2`"column2"`"Hello2"`"Hello2"`false`testCaseDetails)`new TestColumnValue(3`"column3"`"Hello3"`"Hello3"`false`testCaseDetails));" is 273.23UnresolvedNeeded for constuctor call
13
.com.project.apidbtesterQueryTesttestGenerateSelectQueryWithWhereClauseMagic NumberThe method contains a magic number: 20023Resolved
14
.com.project.apidbtesterQueryTesttestGenerateSelectQueryWithWhereClauseMagic NumberThe method contains a magic number: 223UnresolvedNeeded for testing
15
.com.project.apidbtesterQueryTesttestGenerateSelectQueryWithWhereClauseMagic NumberThe method contains a magic number: 323UnresolvedNeeded for testing
16
.com.project.apidbtesterQueryTesttestGenerateCountQueryWithWhereClauseLong StatementThe length of the statement "TestCaseDetails testCaseDetails=new TestCaseDetails(1`"type"`"url"`"payload"`"tableName"`"primaryKeyName"`"primaryKeyValue"`200`""`false);" is 138.39UnresolvedNeeded for constuctor call
17
.com.project.apidbtesterQueryTesttestGenerateCountQueryWithWhereClauseMagic NumberThe method contains a magic number: 20039Resolved
18
.com.project.apidbtesterGetApiServiceTesttestFetchTestResult_AllTestPassedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"shubham"`true)});" is 171.58UnresolvedNeeded for mocking
19
.com.project.apidbtesterGetApiServiceTesttestFetchTestResult_SomeTestsFailedLong StatementThe length of the statement "when(modelMapper.map(eq(Arrays.asList(testColumnValue))`eq(ColumnResult[].class))).thenReturn(new ColumnResult[]{new ColumnResult("first_name"`"shubham"`"saif"`false)});" is 169.83UnresolvedNeeded for mocking
20
.com.project.apidbtesterClientDbInfoControllerTesttestClientDBConnection_basicLong StatementThe length of the statement "ResponseEntity<TestClientConnectionResponse> responseEntity=clientDbInfoController.testClientDBConnection(clientDBCredentialsEntity);" is 133.31UnresolvedOccurred because of long variable names
21
.com.project.apidbtesterTestCasesServiceTesttestFetchAllTestCasesMagic NumberThe method contains a magic number: 330UnresolvedNeeded for testing
22
.com.project.apidbtester.utilsQuerygenerateSelectQueryWithWhereClauseLong StatementThe length of the statement "query.append(" from ").append(testCaseDetails.getTableName()).append(" where ").append(testCaseDetails.getPrimaryKeyName()).append(" = ").append(testCaseDetails.getPrimaryKeyValue()).append(";");" is 195.14UnresolvedNot long statement as spread across multiple lines
23
.com.project.apidbtester.utilsQuerygenerateCountQueryWithWhereClauseLong StatementThe length of the statement "query.append(" from ").append(testCaseDetails.getTableName()).append(" where ").append(testCaseDetails.getPrimaryKeyName()).append(" = ").append(testCaseDetails.getPrimaryKeyValue()).append(";");" is 195.33UnresolvedNot long statement as spread across multiple lines
24
.com.project.apidbtester.exceptionsGlobalExceptionHandlerhandleExceptionsLong StatementThe length of the statement "else if (e instanceof TestCasesService.TestCaseNotFoundException || e instanceof TestCasesService.TestCasesNotFoundException) {" is 127.15Resolved
25
.com.project.apidbtester.clientdbClientDBInfoServicetestClientDBConnectionLong StatementThe length of the statement "DriverManager.getConnection(clientDBCredentialsEntity.getDatabaseUrl()`clientDBCredentialsEntity.getUserName()`clientDBCredentialsEntity.getPassword());" is 152.18Resolved
26
.com.project.apidbtester.clientdbClientDBInfoServicegetClientDBCredentialsLong StatementThe length of the statement "return clientDBInfoRepository.findById(GlobalConstants.DB_CREDENTIALS_ID).orElseThrow(() -> new ClientDBCredentialsNotFoundException());" is 136.30Unresolved
27
.com.project.apidbtester.clientdbClientDBInfoServicegetClientDBCConnectionLong StatementThe length of the statement "ClientDBCredentialsEntity clientDBCredentials=clientDBInfoRepository.findById(GlobalConstants.DB_CREDENTIALS_ID).orElseThrow(() -> new ClientDBCredentialsNotFoundException());" is 175.84UnresolvedNeeded for exception handling
28
.com.project.apidbtester.clientdbClientDBInfoServicegetClientDBCConnectionLong StatementThe length of the statement "return DriverManager.getConnection(clientDBCredentials.getDatabaseUrl()`clientDBCredentials.getUserName()`clientDBCredentials.getPassword());" is 141.84UnresolvedNeeded for constuctor call
29
.com.project.apidbtester.clientdbClientDbInfoControllertestClientDBConnectionLong StatementThe length of the statement "TestClientConnectionResponse testClientConnectionResponse=TestClientConnectionResponse.builder().message(connectionMessage).build();" is 132.20Resolved
30
.com.project.apidbtester.testapis.servicesPostApiServicefetchTestResultComplex MethodCyclomatic complexity of the method is 1052Resolved
31
.com.project.apidbtester.testapis.servicesPutApiServicefetchTestResultComplex MethodCyclomatic complexity of the method is 1044Resolved