Skip to content
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

AssertionError in JarAnalyzer #21

Open
palashborhanuddin opened this issue Jun 28, 2022 · 3 comments
Open

AssertionError in JarAnalyzer #21

palashborhanuddin opened this issue Jun 28, 2022 · 3 comments
Assignees

Comments

@palashborhanuddin
Copy link
Collaborator

I have found the following backtrace while running the test. I don't have any other details other than the backtrace. Please check for the possible reason.

java.lang.AssertionError
at ca.concordia.jaranalyzer.util.InferenceUtility.getClassInstanceCreationQualifiedName(InferenceUtility.java:2283)
at ca.concordia.jaranalyzer.util.InferenceUtility.getFirstEnclosingClassQName(InferenceUtility.java:2216)
at ca.concordia.jaranalyzer.util.InferenceUtility$1.visit(InferenceUtility.java:458)
at org.eclipse.jdt.core.dom.FieldDeclaration.accept0(FieldDeclaration.java:265)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3042)
at org.eclipse.jdt.core.dom.AnonymousClassDeclaration.accept0(AnonymousClassDeclaration.java:135)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3019)
at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:305)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3019)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:238)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3042)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:254)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3042)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:128)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3019)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:698)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3042)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:447)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2971)
at ca.concordia.jaranalyzer.util.InferenceUtility.getFieldVariableDeclarationDtoList(InferenceUtility.java:455)
at ca.concordia.jaranalyzer.util.InferenceUtility.getVariableNameMap(InferenceUtility.java:412)
at ca.concordia.jaranalyzer.TypeInferenceV2API.getMethodInfo(TypeInferenceV2API.java:112)

@palashborhanuddin
Copy link
Collaborator Author

palashborhanuddin commented Jun 28, 2022

I have collected following details:

MethodInvocation string : Mockito.mock(BaseClient.class,Mockito.RETURNS_SELF)
Class name : BuildConfigOperationsImplTest
File: openshift-client/src/test/java/io/fabric8/openshift/client/dsl/internal/build/BuildConfigOperationsImplTest.java
Commit : 75a6e2b45ceb794b911265ccbf3a812f5a745afd
Project : fabric8io/kubernetes-client
Url : https://github.com/fabric8io/kubernetes-client

It reproduces 100%

diptopol added a commit that referenced this issue Jun 29, 2022
@palashborhanuddin
Copy link
Collaborator Author

MethodInvocation string : atLeast(1)
MethodInvocation parent: verify(mockPathToUpload,atLeast(1))
Commit: e9526e030916b0225658bc915f3b605fcf8ebfdf
Class file: kubernetes-client/src/test/java/io/fabric8/kubernetes/client/dsl/internal/uploadable/PodUploadTest.java
Project name: fabric8io/kubernetes-client
Url: https://github.com/fabric8io/kubernetes-client

@palashborhanuddin
Copy link
Collaborator Author

Project Name: aws/aws-sdk-java
Project URL: https://github.com/aws/aws-sdk-java

This project also gives a lot of assertion errors.

awsSdkJava.txt

@tsantalis tsantalis removed their assignment Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants