Search in sources :

Example 1 with Ignore

use of org.testng.annotations.Ignore in project swagger-core by swagger-api.

the class ModelConverterTest method directPropertiesRecognized.

@Test
@Ignore
public void directPropertiesRecognized() {
    final Map<String, Schema> models = ModelConverters.getInstance().read(AnnotatedBaseClass.class);
    final Schema model = models.get("AnnotatedBaseClass");
    assertNotNull(model);
    assertEquals(model.getName(), "AnnotatedBaseClass");
    assertNotNull(model.getProperties());
    assertEquals(model.getProperties().size(), 1);
}
Also used : IntegerSchema(io.swagger.v3.oas.models.media.IntegerSchema) StringSchema(io.swagger.v3.oas.models.media.StringSchema) ArraySchema(io.swagger.v3.oas.models.media.ArraySchema) NumberSchema(io.swagger.v3.oas.models.media.NumberSchema) Schema(io.swagger.v3.oas.models.media.Schema) MapSchema(io.swagger.v3.oas.models.media.MapSchema) Ignore(org.testng.annotations.Ignore) Test(org.testng.annotations.Test)

Example 2 with Ignore

use of org.testng.annotations.Ignore in project jsr354-ri-bp by JavaMoney.

the class MonetaryFormatsTest method testFormat_EUR_fr_FR.

@Test
@Ignore
public void testFormat_EUR_fr_FR() {
    AmountFormatQuery formatQuery = AmountFormatQueryBuilder.of(FRANCE).set(CODE).build();
    MonetaryAmountFormat format = MonetaryFormats.getAmountFormat(formatQuery);
    assertMoneyFormat(format, Money.of(123.01, "EUR"), "123,01 EUR");
    assertMoneyFormat(format, Money.of(14000.12, "EUR"), "14 000,12 EUR");
}
Also used : AmountFormatQuery(javax.money.format.AmountFormatQuery) MonetaryAmountFormat(javax.money.format.MonetaryAmountFormat) Ignore(org.testng.annotations.Ignore) Test(org.testng.annotations.Test)

Example 3 with Ignore

use of org.testng.annotations.Ignore in project SourceCodePortal by Cantara.

the class GitHubRateLimitTest method testGitHubApiLimit.

@Ignore
@Test
public void testGitHubApiLimit() {
    DynamicConfiguration configuration = configuration();
    HttpResponse<String> response = new GetGitHubCommand<>("githubRateLimit", configuration, Optional.empty(), "https://api.github.com/rate_limit", HttpResponse.BodyHandlers.ofString()).execute();
    LOG.trace("GitHub API Limit: {}", JsonbFactory.prettyPrint(response.body()));
}
Also used : DynamicConfiguration(no.ssb.config.DynamicConfiguration) StoreBasedDynamicConfiguration(no.ssb.config.StoreBasedDynamicConfiguration) Ignore(org.testng.annotations.Ignore) Test(org.testng.annotations.Test)

Example 4 with Ignore

use of org.testng.annotations.Ignore in project SourceCodePortal by Cantara.

the class GitHubPageServiceTest method testName.

@Ignore
// (enabled = false)
@Test
public void testName() {
    ExecutorService executorService = ExecutorService.create();
    executorService.start();
    DynamicConfiguration configuration = configuration();
    CacheStore cacheStore = cacheStore(configuration);
    RepositoryConfigLoader loader = new RepositoryConfigLoader(configuration, cacheStore);
    loader.load();
    cacheStore.getRepositories().forEach(rg -> {
        // TODO lookup CacheGroupKey for CacheKey and pass that to worker task
        // TODO use CacheGroupKey for pages
        // executorService.queue(new FetchPageTask(configuration, executorService, cacheStore, rg.getKey(), rg.getValue().readmeURL));
        LOG.trace("{} - {}", rg.getKey(), rg.getValue().apiReadmeURL.getExternalURL());
    // cacheStore.getReadmeContents().get(cacheStore.getCacheKeys().get(rg.getKey().asCacheKey()));
    });
    executorService.shutdown();
}
Also used : DynamicConfiguration(no.ssb.config.DynamicConfiguration) StoreBasedDynamicConfiguration(no.ssb.config.StoreBasedDynamicConfiguration) ExecutorService(no.cantara.docsite.executor.ExecutorService) CacheStore(no.cantara.docsite.cache.CacheStore) RepositoryConfigLoader(no.cantara.docsite.domain.config.RepositoryConfigLoader) Ignore(org.testng.annotations.Ignore) RepositoryConfigLoaderTest(no.cantara.docsite.domain.config.RepositoryConfigLoaderTest) Test(org.testng.annotations.Test)

Example 5 with Ignore

use of org.testng.annotations.Ignore in project SourceCodePortal by Cantara.

the class ScmRepositoryServiceTest method testRepositoryService.

@Ignore
@Test
public void testRepositoryService() {
    DynamicConfiguration configuration = configuration();
    CacheStore cacheStore = cacheStore(configuration);
    RepositoryConfigLoader loader = new RepositoryConfigLoader(configuration, cacheStore);
    cacheStore.getRepositoryConfig().getConfig().repos.forEach((k, v) -> {
        LOG.trace("configRepo: {}", v);
    });
    loader.load();
    ScmRepositoryService service = new ScmRepositoryService(cacheStore);
    service.keySet().forEach(k -> {
    // LOG.trace("key: {}", k);
    });
    // service.sortedEntrySet().entrySet().forEach(entry -> {
    // LOG.trace("group: {} -- count: {}", entry.getKey().groupId, entry.getValue().size());
    // entry.getValue().forEach(scmRepository -> {
    // LOG.trace("  {}", scmRepository.cacheRepositoryKey.repoName );
    // });
    // });
    service.groupedRepositories().forEach((k, v) -> {
        if (k.isGroup()) {
            LOG.trace("isGroup: {}", k.groupId);
            v.forEach(r -> {
                LOG.trace("  {}", r);
            // LOG.trace("  {}", r.cacheRepositoryKey.repoName);
            });
        }
    });
}
Also used : DynamicConfiguration(no.ssb.config.DynamicConfiguration) StoreBasedDynamicConfiguration(no.ssb.config.StoreBasedDynamicConfiguration) CacheStore(no.cantara.docsite.cache.CacheStore) RepositoryConfigLoader(no.cantara.docsite.domain.config.RepositoryConfigLoader) Ignore(org.testng.annotations.Ignore) Test(org.testng.annotations.Test)

Aggregations

Ignore (org.testng.annotations.Ignore)23 Test (org.testng.annotations.Test)21 DynamicConfiguration (no.ssb.config.DynamicConfiguration)4 StoreBasedDynamicConfiguration (no.ssb.config.StoreBasedDynamicConfiguration)4 TopicPartition (org.apache.kafka.common.TopicPartition)4 Cleanup (lombok.Cleanup)3 KafkaHeaderAndRequest (io.streamnative.pulsar.handlers.kop.KafkaCommandDecoder.KafkaHeaderAndRequest)2 Method (java.lang.reflect.Method)2 Path (java.nio.file.Path)2 List (java.util.List)2 Properties (java.util.Properties)2 CompletableFuture (java.util.concurrent.CompletableFuture)2 CacheStore (no.cantara.docsite.cache.CacheStore)2 RepositoryConfigLoader (no.cantara.docsite.domain.config.RepositoryConfigLoader)2 ManagedLedgerConfig (org.apache.bookkeeper.mledger.ManagedLedgerConfig)2 ManagedLedgerImpl (org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl)2 AdminClient (org.apache.kafka.clients.admin.AdminClient)2 ProducerRecord (org.apache.kafka.clients.producer.ProducerRecord)2 MemoryRecords (org.apache.kafka.common.record.MemoryRecords)2 AbstractResponse (org.apache.kafka.common.requests.AbstractResponse)2