package com.google.sps.tests;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public final class AuthInfoTest {
  
  @Test
  public void example() {
    // placeholder test to show that tests are evaluated
    Assert.assertEquals(1 + 1, 2);
    Assert.assertEquals(2 * 2, 4);
    Assert.assertEquals(1337, 1500 - 163);
  }
}
@@ -19,14 +19,46 @@
 .sps
-.tests
+;%0A%0Aimport com.google.sps.data.AuthInfo
 ;%0A%0Ai
@@ -228,18 +228,16 @@
 oTest %7B%0A
-  
 %0A  @Test
@@ -255,187 +255,912 @@
 oid 
-example() %7B%0A    // placeholder test to show that tests are evaluated%0A    Assert.assertEquals(1 + 1, 2);%0A    Assert.assertEquals(2 * 2, 4);%0A    Assert.assertEquals(1337, 1500 - 163
+testDefaultBuilderValues() %7B%0A    AuthInfo uninitializedAuthInfo = AuthInfo.builder().setIsLoggedIn(false).build();%0A    Assert.assertEquals(%22%22, uninitializedAuthInfo.email());%0A    Assert.assertEquals(%22%22, uninitializedAuthInfo.loginUrl());%0A    Assert.assertEquals(%22%22, uninitializedAuthInfo.logoutUrl());%0A  %7D%0A%0A  @Test%0A  public void testBuilderLoggedInFields() %7B%0A    AuthInfo loggedInAuthInfo = AuthInfo.builder()%0A                                  .setIsLoggedIn(true)%0A                                  .setEmail(%22test@gmail.com%22)%0A                                  .setLogoutUrl(%22https://google.com%22)%0A                                  .build();%0A    Assert.assertEquals(true, loggedInAuthInfo.isLoggedIn());%0A    Assert.assertEquals(%22test@gmail.com%22, loggedInAuthInfo.email());%0A    Assert.assertEquals(%22https://google.com%22, loggedInAuthInfo.logoutUrl());%0A    Assert.assertEquals(%22%22, loggedInAuthInfo.loginUrl()
 );%0A 

Add tests for AuthInfo value class