<commit_before><commit_msg>#153 Adding petlog binder test<commit_after>package com.jos.dem.vetlog.binder;

import com.jos.dem.vetlog.command.PetLogCommand;
import com.jos.dem.vetlog.model.PetLog;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;

import static org.junit.jupiter.api.Assertions.assertEquals;

@Slf4j
class PetLogBinderTest {

  private PetLogBinder binder = new PetLogBinder();

  @Test
  @DisplayName("binding a pet log command")
  void shouldBindPetLogCommand(TestInfo testInfo) {
    log.info("Running: {}", testInfo.getDisplayName());
    PetLogCommand petLogCommand = new PetLogCommand();
    petLogCommand.setVetName("<NAME>");
    petLogCommand.setSigns("Digestion issues");
    petLogCommand.setDiagnosis("Constipation");
    petLogCommand.setMedicine("Stool Ease");
    PetLog result = binder.bind(petLogCommand);
    assertEquals("<NAME>", result.getVetName());
    assertEquals("Digestion issues", result.getSigns());
    assertEquals("Constipation", result.getDiagnosis());
    assertEquals("Stool Ease", result.getMedicine());
  }
}
{'fraction_non_alphanumeric': 0.13092161929371232, 'fraction_numerical': 0.00516795865633075, 'mean_word_length': 5.64, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1888644', 'n_tokens_mistral': 384, 'n_tokens_neox': 367, 'n_words': 63}