JAVA-22625 Replaced Junit4 package with Junit5 (#14334)
This commit is contained in:
parent
cd747f077b
commit
f4d0dfcbbe
@ -1,10 +1,11 @@
|
|||||||
package com.baeldung.asciiart;
|
package com.baeldung.asciiart;
|
||||||
|
|
||||||
import com.baeldung.asciiart.AsciiArt.Settings;
|
import com.baeldung.asciiart.AsciiArt.Settings;
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public class AsciiArtIntegrationTest {
|
public class AsciiArtIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -12,7 +13,7 @@ public class AsciiArtIntegrationTest {
|
|||||||
AsciiArt asciiArt = new AsciiArt();
|
AsciiArt asciiArt = new AsciiArt();
|
||||||
String text = "BAELDUNG";
|
String text = "BAELDUNG";
|
||||||
Settings settings = asciiArt.new Settings(new Font("SansSerif", Font.BOLD, 24), text.length() * 30, 30); // 30 pixel width per character
|
Settings settings = asciiArt.new Settings(new Font("SansSerif", Font.BOLD, 24), text.length() * 30, 30); // 30 pixel width per character
|
||||||
|
|
||||||
asciiArt.drawString(text, "*", settings);
|
asciiArt.drawString(text, "*", settings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user