Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #167 from vimeo/java-integration-tests
Browse files Browse the repository at this point in the history
Using PODAM to run some integration tests on type adapter output
  • Loading branch information
anthonycr authored Oct 25, 2018
2 parents 2650e32 + d3e53be commit 64ed936
Show file tree
Hide file tree
Showing 84 changed files with 309 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.junit.Test;

import verification.Utils;

/**
* Created by restainoa on 2/2/17.
*/
Expand All @@ -12,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ClassWithMapTypes.class);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

import org.junit.Test;

import verification.Utils;

public class ComplexGenericClassExtendedTest {

@Test
public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ComplexGenericClassExtended.class);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.junit.Test;

import verification.Utils;

/**
* Created by restainoa on 2/2/17.
*/
Expand All @@ -12,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ComplexGenericClass.class);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.junit.Test;

import verification.Utils;

/**
* Unit tests for {@link TestModel}.
*/
Expand All @@ -11,4 +13,4 @@ public class TestModelTest {
public void verifyTypeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(TestModel.class);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import org.junit.Test;

import verification.Utils;

/**
* Unit tests for {@link UnserializablePlatformType}.
*/
Expand All @@ -11,4 +13,4 @@ public class UnserializablePlatformTypeTest {
public void verifyTypeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(UnserializablePlatformType.class);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.vimeo.integration_test_android;
package verification;

import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -18,4 +18,4 @@ public void typeAdapterWasNotGenerated_AvailabilityIntentDef() throws Exception
public void typeAdapterWasGenerated_ClassWithNestedInterface() throws Exception {
Utils.verifyTypeAdapterGeneration(ClassWithNestedInterface.class);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -13,4 +13,4 @@ public class DuplicateNameTest {
public void verifyTypeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(DuplicateName.class);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;
import com.vimeo.sample_java_model.BaseExternalModel;

import org.junit.Test;
Expand All @@ -22,4 +22,4 @@ public void verifyNoTypeAdapterWasGenerated_BaseExternalModel() throws Exception
Utils.verifyNoTypeAdapterGeneration(BaseExternalModel.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ExternalModelExample1.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ExternalModelExample2.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ExternalModelExample3.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(ExternalModelExample.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(FieldOptionAllExample.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(FieldOptionNoneExample.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(FieldOptionsSerializedName2.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(FieldOptionsSerializedName3.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(FieldOptionsSerializedName.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(GenericClass.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(IdenticalFieldTypes.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public void typeAdapterWasGenerated() throws Exception {
Utils.verifyTypeAdapterGeneration(KnownTypeAdaptersExample.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -21,4 +21,4 @@ public void typeAdapterWasGenerated_NestedEnum_NestedWithAnnotation() throws Exc
Utils.verifyTypeAdapterGeneration(NestedEnum.NestedWithAnnotation.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand All @@ -19,4 +19,4 @@ public void typeAdapterWasGenerated_NestedModel_NestedEnum() throws Exception {
Utils.verifyTypeAdapterGeneration(NestedModel.NestedEnum.class);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.vimeo.sample.model;

import com.vimeo.sample.Utils;
import verification.Utils;

import org.junit.Test;

Expand Down
Loading

0 comments on commit 64ed936

Please sign in to comment.