This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from vimeo/develop
Version 2.5.1
- Loading branch information
Showing
25 changed files
with
370 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
integration-test-java/src/main/java/com/vimeo/sample_java_model/ConcreteDataList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
/** | ||
* Test the extension of a partially resolved generic class. | ||
*/ | ||
@UseStag | ||
public class ConcreteDataList extends AbstractDataList<BaseExternalModel> { | ||
} |
15 changes: 15 additions & 0 deletions
15
integration-test-java/src/main/java/com/vimeo/sample_java_model/DynamicallyTypedModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
/** | ||
* A model with multiple generic types. Acting as a use case for {@link DynamicallyTypedWildcard}. | ||
*/ | ||
@UseStag | ||
public class DynamicallyTypedModel<T extends BaseExternalModel, V extends ExternalModelGeneric<T>> { | ||
|
||
public T videoValue; | ||
|
||
public V dataListValue; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
...gration-test-java/src/main/java/com/vimeo/sample_java_model/DynamicallyTypedWildcard.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* A test case which tests a generic type that has wildcards. The type used is {@link DynamicallyTypedModel}. | ||
*/ | ||
@UseStag | ||
public class DynamicallyTypedWildcard { | ||
|
||
public List<DynamicallyTypedModel<?, ?>> models; | ||
|
||
public String name; | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
integration-test-java/src/main/java/com/vimeo/sample_java_model/RawGenericField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
/** | ||
* Model which references a generically typed object without generic bounds (i.e., as a raw | ||
* type). | ||
*/ | ||
@UseStag | ||
public class RawGenericField { | ||
|
||
@SuppressWarnings("rawtypes") | ||
public ExternalModelGeneric rawTypedField; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
integration-test-java/src/main/java/com/vimeo/sample_java_model/WildcardModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
@UseStag | ||
public class WildcardModel { | ||
|
||
public String name; | ||
|
||
public ExternalModelGeneric<?> externalModelGeneric; | ||
} |
7 changes: 2 additions & 5 deletions
7
...mple/model/root/AbstractDataListTest.java → ...mple_java_model/AbstractDataListTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
integration-test-java/src/test/java/com/vimeo/sample_java_model/ConcreteDataListTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Integration tests for {@link ConcreteDataList}. | ||
*/ | ||
public class ConcreteDataListTest { | ||
|
||
@Test | ||
public void verifyTypeAdapterWasGenerated() throws Exception { | ||
Utils.verifyTypeAdapterGeneration(ConcreteDataList.class); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ration-test-java/src/test/java/com/vimeo/sample_java_model/DynamicallyTypedModelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Integration tests for {@link DynamicallyTypedModel}. | ||
*/ | ||
public class DynamicallyTypedModelTest { | ||
|
||
@Test | ||
public void verifyTypeAdapterWasGenerated() throws Exception { | ||
Utils.verifyTypeAdapterGeneration(DynamicallyTypedModel.class); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ion-test-java/src/test/java/com/vimeo/sample_java_model/DynamicallyTypedWildcardTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Integration tests for {@link DynamicallyTypedWildcard}. | ||
*/ | ||
public class DynamicallyTypedWildcardTest { | ||
|
||
@Test | ||
public void verifyTypeAdapterWasGenerated() throws Exception { | ||
Utils.verifyTypeAdapterGeneration(DynamicallyTypedWildcard.class); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
integration-test-java/src/test/java/com/vimeo/sample_java_model/RawGenericFieldTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Integration tests for {@link RawGenericField}. | ||
*/ | ||
public class RawGenericFieldTest { | ||
|
||
@Test | ||
public void verifyTypeAdapterWasGenerated() throws Exception { | ||
Utils.verifyTypeAdapterGeneration(RawGenericField.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
integration-test-java/src/test/java/com/vimeo/sample_java_model/WildcardModelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.vimeo.sample_java_model; | ||
|
||
import com.vimeo.stag.UseStag; | ||
|
||
import org.junit.Test; | ||
|
||
@UseStag | ||
public class WildcardModelTest { | ||
|
||
@Test | ||
public void typeAdapterWasGenerated_WildcardModel() throws Exception { | ||
Utils.verifyTypeAdapterGeneration(WildcardModel.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,4 +168,4 @@ public void run() { | |
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.