mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
Fix apt test class visibilities
This commit is contained in:
parent
b5a5e2b06d
commit
dd0dd422b3
@ -1,9 +1,8 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Enumerated;
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@ -34,7 +33,7 @@ public class Enum3Test {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class Entity1 {
|
||||
public static class Entity1 {
|
||||
|
||||
@Enumerated(javax.persistence.EnumType.STRING)
|
||||
private EnumImplementation value;
|
||||
@ -46,7 +45,7 @@ public class Enum3Test {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class Entity2 {
|
||||
public static class Entity2 {
|
||||
|
||||
private EnumImplementation value;
|
||||
|
||||
@ -58,7 +57,7 @@ public class Enum3Test {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class Entity3 {
|
||||
public static class Entity3 {
|
||||
|
||||
private EnumImplementation value;
|
||||
|
||||
|
||||
@ -50,11 +50,9 @@ public class Examples {
|
||||
|
||||
@QueryEmbedded
|
||||
Map<?, Complex<String>> map3;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class Complex<T extends Comparable<T>> implements Comparable<Complex<T>> {
|
||||
|
||||
T a;
|
||||
|
||||
@ -26,8 +26,7 @@ public class Generic11Test {
|
||||
|
||||
@Entity
|
||||
public static class B2 extends A2 { } // note the missing type parameter
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ public class Hierarchy2Test {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class A {
|
||||
public static class A {
|
||||
|
||||
@OneToOne
|
||||
SomeEntity entry;
|
||||
@ -43,7 +43,7 @@ public class Hierarchy2Test {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class SomeEntity extends SomeMappedSuperClassHavingMyEmbeddable {
|
||||
public static class SomeEntity extends SomeMappedSuperClassHavingMyEmbeddable {
|
||||
}
|
||||
|
||||
@Embeddable
|
||||
|
||||
@ -13,21 +13,19 @@
|
||||
*/
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.annotations.PropertyType;
|
||||
import com.mysema.query.annotations.QueryType;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
|
||||
public class HierarchyTest {
|
||||
|
||||
@Entity
|
||||
static class A {
|
||||
public static class A {
|
||||
|
||||
B b;
|
||||
|
||||
@ -41,7 +39,7 @@ public class HierarchyTest {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class A2 extends A {
|
||||
public static class A2 extends A {
|
||||
|
||||
// XXX: uncomment @Comment to break generation - QA2.a2.b() will then
|
||||
// return B instead of B2
|
||||
@ -60,11 +58,11 @@ public class HierarchyTest {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class B {
|
||||
public static class B {
|
||||
}
|
||||
|
||||
@Entity
|
||||
static class B2 extends B {
|
||||
public static class B2 extends B {
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@ -1,25 +1,23 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
public class InterfaceType3Test {
|
||||
|
||||
@QueryEntity
|
||||
interface A {
|
||||
public interface A {
|
||||
String getA();
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
interface B {
|
||||
public interface B {
|
||||
String getB();
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
interface C extends A, B {
|
||||
public interface C extends A, B {
|
||||
String getC();
|
||||
}
|
||||
|
||||
|
||||
@ -13,18 +13,16 @@
|
||||
*/
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
import com.mysema.query.types.path.EnumPath;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
public class LiteralEntityTest {
|
||||
|
||||
@QueryEntity
|
||||
enum EnumEntity {
|
||||
public enum EnumEntity {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,26 +1,24 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
import com.mysema.query.annotations.QueryInit;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
public class QueryInit5Test {
|
||||
|
||||
@QueryEntity
|
||||
static class OtherClass {
|
||||
@QueryEntity
|
||||
public static class OtherClass {
|
||||
OtherClass entity;
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
static class OtherClassTwo {
|
||||
@QueryEntity
|
||||
public static class OtherClassTwo {
|
||||
OtherClassTwo entity;
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
static class Parent {
|
||||
public static class Parent {
|
||||
int x;
|
||||
|
||||
@QueryInit("*")
|
||||
@ -28,7 +26,7 @@ public class QueryInit5Test {
|
||||
}
|
||||
|
||||
@QueryEntity
|
||||
static class Child extends Parent {
|
||||
public static class Child extends Parent {
|
||||
@QueryInit("*")
|
||||
OtherClassTwo y;
|
||||
}
|
||||
|
||||
@ -28,8 +28,7 @@ public class SignatureTest {
|
||||
public static abstract class APropertyChangeSupported implements Comparable<Object>, Cloneable, Serializable {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@QuerySupertype
|
||||
public static abstract class AValueObject extends APropertyChangeSupported implements Comparable<Object>, Cloneable, Serializable {
|
||||
|
||||
|
||||
@ -13,20 +13,18 @@
|
||||
*/
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.annotations.PropertyType;
|
||||
import com.mysema.query.annotations.QueryType;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
public class TransientTest {
|
||||
|
||||
@Entity
|
||||
static class ExampleEntity {
|
||||
public static class ExampleEntity {
|
||||
|
||||
@QueryType(PropertyType.SIMPLE)
|
||||
@Transient
|
||||
|
||||
Loading…
Reference in New Issue
Block a user