Skip to content

Commit

Permalink
test: add HCaptchaConfig parcelable test
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed Nov 21, 2024
1 parent 5456b78 commit ab42baa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/src/androidTest/java/com/hcaptcha/sdk/HCaptchaConfigTest.java
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);
}
}

0 comments on commit ab42baa

Please sign in to comment.