Examples of configuration()


Examples of org.jbehave.core.embedder.Embedder.configuration()

            embedder = classLoader.newInstance(Embedder.class, embedderClass);
        }

        URL codeLocation = codeLocation();
        if (codeLocation != null) {
            embedder.configuration().storyReporterBuilder().withCodeLocation(codeLocation);
        }

        embedder.useClassLoader(classLoader);
        embedder.useEmbedderControls(embedderControls());
        if (executorsClass != null) {
View Full Code Here

Examples of org.jbehave.core.embedder.Embedder.configuration()

            embedder = classLoader.newInstance(Embedder.class, embedderClass);
        }
       
        URL codeLocation = codeLocation();
        if (codeLocation != null) {
            embedder.configuration().storyReporterBuilder().withCodeLocation(codeLocation);
        }

        embedder.useClassLoader(classLoader);
        embedder.useEmbedderControls(embedderControls());
        if ( executorsClass != null ){
View Full Code Here

Examples of org.jbehave.core.embedder.Embedder.configuration()

public abstract class JUnitStory extends ConfigurableEmbedder {
   
  @Test
    public void run() throws Throwable {       
        Embedder embedder = configuredEmbedder();
        StoryPathResolver pathResolver = embedder.configuration().storyPathResolver();
        String storyPath = pathResolver.resolve(this.getClass());
        try {
            embedder.runStoriesAsPaths(asList(storyPath));
        } finally {
            embedder.generateCrossReference();
View Full Code Here

Examples of org.jbehave.core.embedder.Embedder.configuration()

public abstract class JUnitStory extends ConfigurableEmbedder {
   
  @Test
    public void run() throws Throwable {       
        Embedder embedder = configuredEmbedder();
        StoryPathResolver pathResolver = embedder.configuration().storyPathResolver();
        String storyPath = pathResolver.resolve(this.getClass());
        embedder.runStoriesAsPaths(asList(storyPath));
    }

View Full Code Here

Examples of org.jboss.resteasy.client.jaxrs.ResteasyWebTarget.configuration()

      ResteasyClient client = new ResteasyClient();
      WebTarget keystoneServer = client.target("http://localhost:8080/keystone-server");
      ResteasyWebTarget adminServerTarget = client.target("http://localhost:8080/keystone-server");
      String token = new SkeletonKeyClientBuilder().username("admin").password("geheim").idp(keystoneServer).signed("Keystone", adminServerTarget);
      System.out.println("token: " + token);
      Mappers.registerContextResolver(adminServerTarget.configuration());
      SkeletonKeyAdminClient admin = adminServerTarget.proxy(SkeletonKeyAdminClient.class);
      User user = admin.users().get("1");
      System.out.println(user);
   }
View Full Code Here

Examples of org.jooq.AttachableInternal.configuration()

        // Settings.attachRecords flag is set
        if (attachable instanceof Attachable && record instanceof AttachableInternal) {
            Attachable a = (Attachable) attachable;
            AttachableInternal r = (AttachableInternal) record;

            if (Utils.attachRecords(r.configuration())) {
                a.attach(r.configuration());
            }
        }

        return attachable;
View Full Code Here

Examples of org.jooq.AttachableInternal.configuration()

        if (attachable instanceof Attachable && record instanceof AttachableInternal) {
            Attachable a = (Attachable) attachable;
            AttachableInternal r = (AttachableInternal) record;

            if (Utils.attachRecords(r.configuration())) {
                a.attach(r.configuration());
            }
        }

        return attachable;
    }
View Full Code Here

Examples of org.jooq.BindContext.configuration()

        int substituteIndex = 0;
        char[] sqlChars = sql.toCharArray();

        // [#1593] Create a dummy renderer if we're in bind mode
        if (render == null) render = new DefaultRenderContext(bind.configuration());

        SQLDialect dialect = render.configuration().dialect();
        SQLDialect family = dialect.family();
        String[][] quotes = QUOTES.get(family);
View Full Code Here

Examples of org.jooq.DSLContext.configuration()

        DSLContext create1 = DSL.using(SQLDialect.POSTGRES, new Settings().withRenderSchema(false));
        assertEquals("\"T\"", create1.render(table));

        DSLContext create2 = DSL.using(SQLDialect.POSTGRES);
        create2.configuration().settings().setRenderSchema(false);
        assertEquals("\"T\"", create2.render(table));
    }

    @Test
    public void testRenderMapping() {
View Full Code Here

Examples of org.jooq.DSLContext.configuration()

    public void testRenderMapping() {
        DSLContext create1 = DSL.using(SQLDialect.POSTGRES, new Settings().withRenderMapping(mapping()));
        assertEquals("\"TABLEX\"", create1.render(TABLE1));

        DSLContext create2 = DSL.using(SQLDialect.POSTGRES);
        create2.configuration().settings().setRenderMapping(mapping());
        assertEquals("\"TABLEX\"", create2.render(TABLE1));
    }

    private RenderMapping mapping() {
        return new RenderMapping().withSchemata(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.