001package com.lucidtech.puttingalltogether.samples; 002 003import com.lucidtech.puttingalltogether.controller.GreetingController; 004import org.junit.jupiter.api.Assertions; 005import org.junit.jupiter.api.Test; 006 007import static org.junit.jupiter.api.Assertions.assertTrue; 008 009class SimpleUnitTest { 010 011 @Test 012 public void shouldTestGreeting() { 013 Assertions.assertTrue((new GreetingController().greeting("Faisal")).content().contains("Faisal")); 014 } 015 @Test 016 public void shouldTestGreeting1() { 017 assertTrue((new GreetingController().greeting("Faisal1")).content().contains("Faisal1")); 018 } 019 @Test 020 public void shouldTestGreeting2() { 021 assertTrue((new GreetingController().greeting("Faisal2")).content().contains("Faisal2")); 022 } 023 @Test 024 public void shouldTestGreeting3() { 025 assertTrue((new GreetingController().greeting("Faisal4")).content().contains("Faisal4")); 026 } 027 028}