3

How to have more than 1 Class in PowerMock SuppressStaticInitializationFor class level Annotation.

This works fine with 1 class.

@SuppressStaticInitializationFor("org.foo.FooClass")

I can't figure out how to put more than 1 class in this annotation even though the JavaDoc (see below) says that you can.

Annotation Type SuppressStaticInitializationFor JavaDoc

javaPlease42
  • 4,699
  • 7
  • 36
  • 65

1 Answers1

5

I thought I already tried this, but I guess I didn't.

Solution:

@SuppressStaticInitializationFor({"org.foo.FooClass1","org.foo.FooClass2"})
javaPlease42
  • 4,699
  • 7
  • 36
  • 65