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

use cases for AssertFixer #39

Open
monperrus opened this issue Jul 15, 2019 · 2 comments
Open

use cases for AssertFixer #39

monperrus opened this issue Jul 15, 2019 · 2 comments

Comments

@monperrus
Copy link
Member

one day, we'll write a paper about AssertFixer. here we collect use cases and stories.

@monperrus
Copy link
Member Author

First use case: the tests of NpeFix fail because a change of the pretty-printing format of spoon.

  ReplaceGlobalTest.ReplaceGlobalInstanceTest:33 expected:<if ([(array)] == null)
    this.a...> but was:<if ([array] == null)
    this.a...>
  ReplaceGlobalTest.ReplaceGlobalVariableTest:54 expected:<if ([(array)] == null)
    this.a...> but was:<if ([array] == null)
    this.a...>
  SkipLineTest.skipLineTest:32 expected:<if ([(array)] != null)
    for (j...> but was:<if ([array] != null)
    for (j...>
  SkipMethodReturnTest.skipMethodReturnInConstructorTest:33 expected:<...   super();
    if ([(field)] != null) {
        ...> but was:<...   super();
    if ([field] != null) {
        ...>
  SkipMethodReturnTest.skipLineTest:60 expected:<if ([(array)] == null)
    return...> but was:<if ([array] == null)
    return...>
  ReplaceLocalTest.ReplaceLocalInstanceTest:33 expected:<if ([(array)] == null)
    for (S...> but was:<if ([array] == null)
    for (S...>
  ReplaceLocalTest.ReplaceLocalVariableTest:65 expected:<if ([(array)] == null)
    for (S...> but was:<if ([array] == null)
    for (S...>

Should be easily fixed by AsserFixer.

@monperrus
Copy link
Member Author

what about IDE support? See https://youtrack.jetbrains.com/issue/IDEA-218275

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

1 participant