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

refactor: unify syntax of asserts in tests (Assert.assert* -> assert*) #2604

Merged
merged 13 commits into from
Oct 2, 2018
Prev Previous commit
Next Next commit
refactor: remove 'Assert' prefix
  • Loading branch information
zielint0 committed Oct 1, 2018
commit db7f3b4e6f04c8064599c23f0b1b75e0659c98fa
4 changes: 2 additions & 2 deletions src/test/java/spoon/test/intercession/IntercessionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void testInsertEnd() {
.compile();
CtMethod<?> foo = (CtMethod<?>) clazz.getMethods().toArray()[0];
CtMethod<?> fooClone = foo.clone();
Assert.assertEquals(foo, fooClone);
assertEquals(foo, fooClone);
CtBlock<?> body = foo.getBody();
assertEquals(2, body.getStatements().size());

Expand All @@ -95,7 +95,7 @@ public void testEqualConstructor() {
.compile();
CtConstructor<?> foo = (CtConstructor<?>) clazz.getConstructors().toArray()[0];
CtConstructor<?> fooClone = foo.clone();
Assert.assertEquals(foo, fooClone);
assertEquals(foo, fooClone);

CtBlock<?> body = foo.getBody();

Expand Down