Examples of Fixture


Examples of com.badlogic.gdx.physics.box2d.Fixture

        fixtureDef.shape = circle;
        fixtureDef.density = 0.2f;
        fixtureDef.friction = 0.4f;
        fixtureDef.restitution = 0.67f;

        Fixture fixture = unit.getBody().createFixture(fixtureDef);

       
        circle.dispose();       
    }
View Full Code Here

Examples of com.medallia.tiny.Fixture

 
  /** Add a fixture instead (or override safeUp if you must) */
  @Override @Deprecated
  protected final void setUp() throws Exception {
    if (fixtures == null) throw new Error("Already up()ed");
    addFixture(new Fixture() {
      public void down() throws Exception {
        safeDown();
      }
      public void up() throws Exception {
        safeUp();
View Full Code Here

Examples of fit.Fixture

    }
    validateDecoratorInput(table);
    Parse actualHeader = table.parts.more.parts;
    String encapsulatedFixtureName = actualHeader.text();
    super.summary.put(ENCAPSULATED_FIXTURE_NAME, encapsulatedFixtureName);
    Fixture fixture = loadFixture(actualHeader, encapsulatedFixtureName);
    if (fixture != null) {
      execute(fixture, table);
      super.summary.putAll(fixture.summary);
      counts.tally(fixture.counts);
    }
View Full Code Here

Examples of org.apache.aries.unittest.fixture.ArchiveFixture.Fixture

                blueprint.append("</reference>");
            }
        }
        blueprint.append("</blueprint>");
       
        Fixture jar = ArchiveFixture.newJar()
            .manifest().symbolicName("sample"+no)
                .attribute("Import-Package", "org.osgi.framework")
            .end()
            .binary("org/apache/aries/blueprint/itests/comp/Listener.class",
                    getClass().getClassLoader().getResourceAsStream(
                            "org/apache/aries/blueprint/itests/comp/Listener.class"))
            .binary("org/apache/aries/blueprint/itests/comp/ListFactory.class",
                    getClass().getClassLoader().getResourceAsStream(
                            "org/apache/aries/blueprint/itests/comp/ListFactory.class"))
                           
            .file("OSGI-INF/blueprint/blueprint.xml", blueprint.toString())
            .end();
       
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        jar.writeOut(bout);
       
        return new ByteArrayInputStream(bout.toByteArray());
    }
View Full Code Here

Examples of org.apache.aries.unittest.fixture.ArchiveFixture.Fixture

      // no actual assertions, we just don't want to deadlock
    }
   
    @Test
    public void testScheduledExecMemoryLeak() throws Exception {
        Fixture jar = ArchiveFixture.newJar()
            .manifest().symbolicName("test.bundle").end()
            .file("OSGI-INF/blueprint/blueprint.xml")
                .line("<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\">")
                .line("<reference interface=\"java.util.List\" />")
                .line("</blueprint>").end().end();
       
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        jar.writeOut(bout);
       
        Bundle b = bundleContext.installBundle("test.bundle", new ByteArrayInputStream(bout.toByteArray()));
       
        for (int i=0; i<16; i++) System.gc();
        long startFreeMemory = Runtime.getRuntime().freeMemory();
View Full Code Here

Examples of org.apache.chemistry.opencmis.fit.runtime.Fixture

* Independent session creation test (read only)
*/
public class ReadOnlyCreateSessionWebServicesIT extends AbstractReadOnlyCreateSessionIT {

    protected void init() {
        this.fixture = new Fixture();
        this.fixture.enableWebServices();
        this.fixture.init();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.fit.runtime.Fixture

* Independent session creation test (read only)
*/
public class ReadOnlyCreateSessionAtomPubIT extends AbstractReadOnlyCreateSessionIT {

    protected void init() {
        this.fixture = new Fixture();
        this.fixture.enableAtomPub();
        this.fixture.init();
    }
View Full Code Here

Examples of org.apache.isis.core.integtestsupport.legacy.Fixture

            for (final Fixture fixtureAnnotation : fixtureAnnotations) {
                addFixtureRepresentedBy(fixtureAnnotation, fixtures);
            }
        }

        final Fixture fixtureAnnotation = javaClass.getAnnotation(Fixture.class);
        if (fixtureAnnotation != null) {
            addFixtureRepresentedBy(fixtureAnnotation, fixtures);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.junit.Fixture

            for (final Fixture fixtureAnnotation : fixtureAnnotations) {
                addFixtureRepresentedBy(fixtureAnnotation, fixtures);
            }
        }

        final Fixture fixtureAnnotation = javaClass.getAnnotation(Fixture.class);
        if (fixtureAnnotation != null) {
            addFixtureRepresentedBy(fixtureAnnotation, fixtures);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.junit.Fixture

            for (final Fixture fixtureAnnotation : fixtureAnnotations) {
                addFixtureRepresentedBy(fixtureAnnotation, fixtures);
            }
        }

        final Fixture fixtureAnnotation = javaClass.getAnnotation(Fixture.class);
        if (fixtureAnnotation != null) {
            addFixtureRepresentedBy(fixtureAnnotation, fixtures);
        }
    }
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.