Java class created for tag annotation in scalatest giving duplicate class error

123 views Asked by At
package com.mycompany.myproject.testing.tags;

import java.lang.annotation.*;
import org.scalatest.TagAnnotation

@TagAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface DbTest {}

-- above created tag using java class is used on scalatest class package com.mycompany.myproject.testing.tests

@com.mycompany.myproject.testing.tags.DbTest
class ValidationTest extends Funsuite with DFInput{
}

when running above scenario giving error below /D:/git/project/src/test/scala/com/mycompany/myproject/testing/tags/DbTest.java:[9,9] duplicate class: com.mycompany.myproject.testing.tags.DbTest

0

There are 0 answers