groovy.lang.MissingMethodException: No signature of method: cat.Cat.count() is applicable for argument types: () values: [] Possible solutions: count(), ident(), print(java.lang.Object), print(java.io.PrintWriter), getCount(), wait()

Stack Overflow | user734861 | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    MissingMethodException: No signature of method error after replacing method using groovy metaclass?

    Stack Overflow | 8 months ago | user734861
    groovy.lang.MissingMethodException: No signature of method: cat.Cat.count() is applicable for argument types: () values: [] Possible solutions: count(), ident(), print(java.lang.Object), print(java.io.PrintWriter), getCount(), wait()

    Root Cause Analysis

    1. groovy.lang.MissingMethodException

      No signature of method: cat.Cat.count() is applicable for argument types: () values: [] Possible solutions: count(), ident(), print(java.lang.Object), print(java.io.PrintWriter), getCount(), wait()

      at cat.CatTests.testSomething2()
    2. cat
      CatTests.testSomething2
      1. cat.CatTests.testSomething2(CatTests.groovy:37)
      1 frame