/*
 * MIT License
 *
 * Copyright (c) 2018 Choko (choko@curioswitch.org)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

package org.curioswitch.eggworld.server.util;

import org.junit.jupiter.api.Test;

class IngredientConverterTest {

  @Test
  void normal() {}
}

@@ -1204,95 +1204,1156 @@
 ort 
-org.junit.jupiter.api.Test;%0A%0Aclass IngredientConverterTest %7B%0A%0A  @Test%0A  void normal() %7B
+static org.assertj.core.api.Assertions.assertThatThrownBy;%0Aimport static org.curioswitch.common.testing.assertj.CurioAssertions.assertThat;%0A%0Aimport org.curioswitch.eggworld.api.Ingredient;%0Aimport org.junit.jupiter.api.Test;%0A%0Aclass IngredientConverterTest %7B%0A%0A  @Test%0A  void toYummly() %7B%0A    for (var ingredient : Ingredient.values()) %7B%0A      if (ingredient == Ingredient.UNRECOGNIZED) %7B%0A        continue;%0A      %7D%0A      assertThat(IngredientConverter.FORWARD.convert(ingredient))%0A          .isEqualTo(ingredient.name().toLowerCase());%0A    %7D%0A  %7D%0A%0A  @Test%0A  void fromYummly() %7B%0A    for (var ingredient : Ingredient.values()) %7B%0A      if (ingredient == Ingredient.UNRECOGNIZED) %7B%0A        continue;%0A      %7D%0A      assertThat(IngredientConverter.REVERSE.convert(ingredient.name().toLowerCase()))%0A          .isEqualTo(ingredient);%0A    %7D%0A  %7D%0A%0A  @Test%0A  void unrecognized() %7B%0A    assertThatThrownBy(() -%3E IngredientConverter.FORWARD.convert(Ingredient.UNRECOGNIZED))%0A        .isInstanceOf(IllegalArgumentException.class);%0A    assertThatThrownBy(() -%3E IngredientConverter.REVERSE.convert(%22foobarchoko%22))%0A        .isInstanceOf(IllegalArgumentException.class);%0A  
 %7D%0A%7D%0A

Add tests for IngredientConverter. (#223)