java.lang.AssertionError

[PojoFieldImpl [field=private static int[] net.company.model.MyClass.$SWITCH_TABLE$net$company$MyEnum, fieldGetter=null, fieldSetter=null]] is missing a getter

Samebug tips1

Check your pattern declaration or check your assert declaration.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3443

  • via GitHub by concon121
    , 1 year ago
    [PojoFieldImpl [field=private static int[] net.company.model.MyClass.$SWITCH_TABLE$net$company$MyEnum, fieldGetter=null, fieldSetter=null]] is missing a getter
  • [PojoFieldImpl [field=private final com...RankingResourceObject$SortOrder[] com...RankingResourceObject$SortOrder$2.val$multipleSortOrders, fieldGetter=null, fieldSetter=null]] is missing a getter
  • Static fields=[PojoFieldImpl [field=private static transient boolean[] com.branchitech.tasktop.domain.LastModifier.$jacocoData, fieldGetter=null, fieldSetter=null]] not marked final are not allowed
  • Stack trace

    • java.lang.AssertionError: [PojoFieldImpl [field=private static int[] net.company.model.MyClass.$SWITCH_TABLE$net$company$MyEnum, fieldGetter=null, fieldSetter=null]] is missing a getter at org.junit.Assert.fail(Assert.java:88) at com.openpojo.validation.affirm.JUnitAssertAffirmation.fail(JUnitAssertAffirmation.java:38) at com.openpojo.validation.affirm.Affirm.fail(Affirm.java:47) at com.openpojo.validation.rule.impl.GetterMustExistRule.evaluate(GetterMustExistRule.java:38) at com.openpojo.validation.utils.ValidationHelper.runValidation(ValidationHelper.java:91) at com.openpojo.validation.impl.DefaultValidator.validate(DefaultValidator.java:46) at com.openpojo.validation.impl.DefaultValidator.validate(DefaultValidator.java:51) at com.openpojo.validation.impl.DefaultValidator.validate(DefaultValidator.java:57) at net.apmoller.crb.portal.ssib.PojoValidation.testPojoStructureAndBehavior(PojoValidation.java:25) at net.apmoller.crb.portal.ssib.location.LocationModelTest.testPojoStructureAndBehavior(LocationModelTest.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 1 week ago
    Once, 1 week ago
    8 times, 1 month ago
    2 times, 2 months ago
    2 times, 3 months ago
    98 more bugmates