title: Lombok annotations for inner static classes
body: <p>Before starting, when looking for an answer to this question I've looked at the following question which didn't answer mine:
  * <a href="https://stackoverflow.com/questions/53342982/is-it-possible-to-add-builder-and-allargsconstructor-in-static-inner-classes">Is it possible to add @Builder and @AllArgsConstructor in static inner classes [Lombok]?</a></p>
  
  <p>In my tests, I created an inner class that holds my test cases:</p>
  
  <pre><code>@AllArgsConstructor
  @Getter
  static class TestData {
      private final String testCase;
      private final String value1;
      private final String value2;
      private final int value3;
  }
  </code></pre>
  
  <p>Also in those tests, I have a list containing all of those test cases:</p>
  
  <pre><code>    private static final List&lt;TestData&gt; testData = Collections.unmodifiableList(Arrays.asList(
              new TestData("test case 1", "value1", "value2", 1),
              new TestData("test case 2", "value2", "value2", 2),
              new TestData("test case 3", "value2", "value1", 3),
              new TestData("test case 4", "value2", "value2", 4),
      ));
  </code></pre>
  
  <p>However, when I'm compiling the code I'm getting the following error:</p>
  
  <pre><code>error: constructor TestData in class TestData cannot be applied to given types;
              new TestData("test case 1", "value1", "value2", 1),
              ^
    required: no arguments
    found: String,String,String,int
    reason: actual and formal argument lists differ in length
  </code></pre>
  
  <p><strong>EDIT</strong>
  Since it seems to be something that does not work on my project I'm attaching my complete example code that is failing:</p>
  
  <pre><code>public class Testing {
  
      private static final List&lt;TestData&gt; testData = Collections.unmodifiableList(Arrays.asList(
              new TestData("test case 1", "value1", "value2", 1),
              new TestData("test case 2", "value2", "value2", 2),
              new TestData("test case 3", "value2", "value1", 3),
              new TestData("test case 4", "value2", "value2", 4)
      ));
  
      @Test
      public void aTest() {
          for (final TestData data : testData) {
              System.out.println("***********************");
              System.out.println(data.getTestCase());
              System.out.println(data.getValue1());
              System.out.println(data.getValue2());
              System.out.println(data.getValue3());
          }
      }
  
      @AllArgsConstructor
      @Getter
      static class TestData {
          private final String testCase;
          private final String value1;
          private final String value2;
          private final int value3;
      }
  }
  </code></pre>
  
  <p>This is my build.gradle file:</p>
  
  <pre><code>plugins {
      id 'java'
  }
  
  group 'org.example'
  version '1.0-SNAPSHOT'
  
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compileOnly 'org.projectlombok:lombok:1.18.10'
  
      annotationProcessor 'org.projectlombok:lombok:1.18.10'
  
      testCompile 'junit:junit:4.12'
      testCompile 'org.projectlombok:lombok:1.18.10'
  }
  </code></pre>
  
  <p><strong>EDIT2</strong>
  You can find the code example in the project that I'm running on my machine (and some of my colleges) in this GitHub repo:
  <a href="https://github.com/yonatankarp/stackoverflow_lombok" rel="nofollow noreferrer">https://github.com/yonatankarp/stackoverflow_lombok</a> </p>