@@ -0,0 +1,2034 @@
+// Copyright 2019 Google LLC%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//     https://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A%0Apackage com.google.sps;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.io.IOException;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A%0A@RunWith(JUnit4.class)%0Apublic final class FormattingTest %7B%0A%0A  @Test%0A  public void formatMidnight() throws IOException %7B%0A    String time = %2200:00%22;%0A    String formattedTime = Utils.formatTime(time);%0A%0A    assertEquals(%2212:00 AM%22, formattedTime);%0A  %7D%0A%0A  @Test%0A  public void formatNoon() throws IOException %7B%0A    String time = %2212:00%22;%0A    String formattedTime = Utils.formatTime(time);%0A%0A    assertEquals(%2212:00 PM%22, formattedTime);%0A  %7D%0A%0A  @Test%0A  public void formatSingleDigitAm() throws IOException %7B%0A    String time = %2207:00%22;%0A    String formattedTime = Utils.formatTime(time);%0A%0A    assertEquals(%227:00 AM%22, formattedTime);%0A  %7D%0A%0A  @Test%0A  public void formatSingleDigitPm() throws IOException %7B%0A    String time = %2213:00%22;%0A    String formattedTime = Utils.formatTime(time);%0A%0A    assertEquals(%221:00 PM%22, formattedTime);%0A  %7D%0A%0A  @Test%0A  public void formatSingleDigitMonth() throws IOException %7B%0A    String date = %222020-05-17%22;%0A    String formattedDate = Utils.formatDate(date);%0A%0A    assertEquals(%22Sunday, May 17, 2020%22, formattedDate);%0A  %7D%0A%0A  @Test%0A  public void formatDoubleDigitMonth() throws IOException %7B%0A    String date = %222020-12-17%22;%0A    String formattedDate = Utils.formatDate(date);%0A%0A    assertEquals(%22Thursday, December 17, 2020%22, formattedDate);%0A  %7D%0A%7D%0A

Add tests for formatting