Skip to content

Commit

Permalink
adicionando o hash do método e o caminho do método
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiovirginio committed Apr 5, 2024
1 parent db7fcde commit 17c7f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/br/ufba/jnose/core/JNoseCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ public void getTestSmells(TestClass testClass) {
testSmell.setName(smell.getSmellName());
testSmell.setMethod(smellyElement.getElementName());
testSmell.setRange(smellyElement.getRange());
testSmell.setTestClass(testClass);
testClass.getListTestSmell().add(testSmell);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/br/ufba/jnose/dto/TestSmell.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public String getMethodNameHash(){
hash = String.format("%032x", new BigInteger(1, md5.digest()));
} catch (Exception e) {
e.printStackTrace();
return "";
}
return hash;
}
Expand Down

0 comments on commit 17c7f78

Please sign in to comment.