Skip to content

Commit

Permalink
Add validation test for groovy.transform.builder.Builder (bazelbuild#865
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Jan Wloka authored and Godin committed Aug 21, 2019
1 parent 7b5be75 commit 9d7f71c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*******************************************************************************
* Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jan Wloka - initial API and implementation
*
*******************************************************************************/
package org.jacoco.core.test.validation.groovy;

import org.jacoco.core.test.validation.ValidationTestBase;
import org.jacoco.core.test.validation.groovy.targets.GroovyBuilderClassTarget;
import org.junit.Test;

/**
* Test of class with {@link groovy.transform.builder.Builder} annotation.
*/
public class GroovyBuilderClassTest extends ValidationTestBase {
public GroovyBuilderClassTest() {
super(GroovyBuilderClassTarget.class);
}

@Test
public void test_method_count() {
assertMethodCount(1);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jan Wloka - initial API and implementation
*
*******************************************************************************/
package org.jacoco.core.test.validation.groovy.targets

import groovy.transform.builder.Builder
import groovy.transform.builder.SimpleStrategy

@Builder(builderStrategy = SimpleStrategy)
class GroovyBuilderClassTarget { // assertEmpty()

String name // assertEmpty()

static void main(String[] args) {
new GroovyBuilderClassTarget() // assertFullyCovered()
}
}

0 comments on commit 9d7f71c

Please sign in to comment.