-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add HCaptchaConfig parcelable test
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaConfigTest.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,22 @@ | ||
package com.hcaptcha.sdk; | ||
|
||
import static org.junit.Assert.assertTrue; | ||
|
||
import android.os.Parcel; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class HCaptchaConfigTest { | ||
|
||
@Test | ||
public void testParcelable() { | ||
HCaptchaConfig config = HCaptchaConfig.builder().build(); | ||
Parcel parcel = Parcel.obtain(); | ||
parcel.writeSerializable(config); | ||
assertTrue(parcel.dataSize() > 0); | ||
} | ||
} |