Maytime-laborday is extension for Maytime framework which provides user by testing tools for programs which were written using Maytime.
Use ready-made annotations to test your applications.
- Java version 1.8+
- Maven - build and management tool for Java-projects
Before all, clone Maytime-laborday in your workspace and run mvn install command:
git clone https://github.com/DavydenkoGr/maytime-laborday
cd maytime-laborday
git submodule update --recursive
mvn install
The next step is to add a dependency to your own project:
<dependency>
<groupId>org.mipt.maytime.laborday</groupId>
<artifactId>maytime-laborday</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
After adding a dependency, you may import the following classes to configure your tests:
import org.mipt.maytime.annotations.Inject;
import org.mipt.maytime.laborday.MaytimeExtension;
import org.mipt.maytime.laborday.annotations.MaytimeTestSources;
Annotate your test classes using @ExtendWith(MaytimeExtension.class). Annotate the fields which you want to fill with components using the @Inject annotation. If you use classes from different sources, use @MaytimeTestSources annotation to specify them.
- Davydenko Grigorii
- GitHub: @DavydenkoGr
- Telegram: @desertSmoke42
- Vronskii Alexander
- GitHub: @asvronsky
- Telegram: @asvronsky