22 lines
601 B
Java
22 lines
601 B
Java
package com.github.javafaker;
|
|
|
|
import org.junit.Test;
|
|
|
|
import static org.hamcrest.Matchers.isEmptyOrNullString;
|
|
import static org.hamcrest.Matchers.not;
|
|
import static org.junit.Assert.assertThat;
|
|
|
|
public class MountainTest extends AbstractFakerTest {
|
|
@Test
|
|
public void testMountainName() {
|
|
String mountainName = faker.mountain().name();
|
|
assertThat(mountainName, not(isEmptyOrNullString()));
|
|
}
|
|
|
|
@Test
|
|
public void testMountainLeague() {
|
|
String mountainLeague = faker.mountain().range();
|
|
assertThat(mountainLeague, not(isEmptyOrNullString()));
|
|
}
|
|
}
|