multiproject.testproject.src.test.java.org.gradle.JavaPersonTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-api Show documentation
Show all versions of gradle-api Show documentation
Gradle 6.9.1 API redistribution.
package org.gradle;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.IOException;
import java.io.File;
import java.util.Properties;
public class JavaPersonTest {
@Test
public void testMainProperty() throws IOException {
assertEquals("mainValue", new JavaPerson().readProperty());
}
@Test
public void testTestProperty() throws IOException {
Properties properties = new Properties();
properties.load(getClass().getClassLoader().getResourceAsStream("org/gradle/test.properties"));
assertEquals("testValue", properties.getProperty("test"));
}
@Test
public void testMarkerFile() throws IOException {
new File(System.getProperty("org.gradle.integtest.buildDir") + "/" + getClass().getSimpleName()).createNewFile();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy