Search in sources :

Example 41 with Test

use of org.junit.jupiter.api.Test in project VocabHunter by VocabHunter.

the class SettingsPathToolTest method testObtainSettingsFilePath.

@Test
public void testObtainSettingsFilePath() {
    Path path = SettingsPathTool.obtainSettingsFilePath("test.txt");
    LOG.info("Settings file path {}", path);
    Assertions.assertNotNull(path, "Settings file path");
}
Also used : Path(java.nio.file.Path) Test(org.junit.jupiter.api.Test)

Example 42 with Test

use of org.junit.jupiter.api.Test in project VocabHunter by VocabHunter.

the class SimpleAnalyserTest method testMixedCase.

@Test
public void testMixedCase() {
    AnalysisResult result = analyse(UPPER_CASE, LOWER_CASE);
    validate(result, use(LOWER_CASE, 2, LineReference.FIRST, LineReference.SECOND));
}
Also used : AnalysisResult(io.github.vocabhunter.analysis.model.AnalysisResult) Test(org.junit.jupiter.api.Test)

Example 43 with Test

use of org.junit.jupiter.api.Test in project VocabHunter by VocabHunter.

the class SimpleAnalyserTest method testSpanish.

@Test
public void testSpanish() {
    AnalysisResult result = analyse(LINE_WITH_ACCENTS);
    validate(result, use(SPANISH_1, 1, LineReference.FIRST), use(SPANISH_2, 1, LineReference.FIRST), use(SPANISH_4, 1, LineReference.FIRST), use(SPANISH_3, 1, LineReference.FIRST));
}
Also used : AnalysisResult(io.github.vocabhunter.analysis.model.AnalysisResult) Test(org.junit.jupiter.api.Test)

Example 44 with Test

use of org.junit.jupiter.api.Test in project VocabHunter by VocabHunter.

the class SimpleAnalyserTest method testExtraSpaces.

@Test
public void testExtraSpaces() {
    AnalysisResult result = analyse(LINE_WITH_SPACES);
    validate(result, use(WORD_1, 1, LineReference.FIRST), use(WORD_3, 1, LineReference.FIRST), use(WORD_2, 1, LineReference.FIRST));
}
Also used : AnalysisResult(io.github.vocabhunter.analysis.model.AnalysisResult) Test(org.junit.jupiter.api.Test)

Example 45 with Test

use of org.junit.jupiter.api.Test in project VocabHunter by VocabHunter.

the class SimpleAnalyserTest method testSingle.

@Test
public void testSingle() {
    AnalysisResult result = analyse(WORD_1);
    validate(result, use(WORD_1, 1, LineReference.FIRST));
}
Also used : AnalysisResult(io.github.vocabhunter.analysis.model.AnalysisResult) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)265 BigInteger (java.math.BigInteger)50 JsonObject (io.vertx.core.json.JsonObject)20 NemAnnounceResult (com.github.rosklyar.client.transaction.domain.NemAnnounceResult)15 PublicAccount (io.nem.sdk.model.account.PublicAccount)14 AnalysisResult (io.github.vocabhunter.analysis.model.AnalysisResult)12 Address (io.nem.sdk.model.account.Address)10 NamespaceId (io.nem.sdk.model.namespace.NamespaceId)10 ExecutorService (java.util.concurrent.ExecutorService)9 UnconfirmedTransactions (com.github.rosklyar.client.account.domain.transaction.UnconfirmedTransactions)7 MosaicId (com.github.rosklyar.client.transaction.domain.mosaic.MosaicId)7 Transactions (com.github.rosklyar.client.account.domain.transaction.Transactions)6 PsiClass (com.intellij.psi.PsiClass)6 Mosaic (io.nem.sdk.model.mosaic.Mosaic)6 MosaicId (io.nem.sdk.model.mosaic.MosaicId)6 Disabled (org.junit.jupiter.api.Disabled)6 DisplayName (org.junit.jupiter.api.DisplayName)6 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)6 InOrder (org.mockito.InOrder)6 SpellDao (com.iluwatar.servicelayer.spell.SpellDao)5