Package com.volantis.synergetics.testtools.io

Examples of com.volantis.synergetics.testtools.io.ResourceTemporaryFileCreator


     * Test the exists method.
     */
    public void testReadingEmptyRepository() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(this.getClass(),
                        "repository_empty.zip"));
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                try {
                    new EclipseDeviceRepository(repository.getPath(),
View Full Code Here


     */
    public void testDeviceImage() throws Exception {

        final String imageName = "tt_blackbox2.wbmp";
        TemporaryFileManager fileManager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(
                        FileImageAssetFactoryTestCase.class, imageName));

        fileManager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

View Full Code Here

     */
    public void testGenericImage() throws Exception {

        final String imageName = "gimp.gif";
        TemporaryFileManager fileManager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(
                        FileImageAssetFactoryTestCase.class, imageName));

        fileManager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

View Full Code Here

     */
    public void testConvertibleImage() throws Exception {

        final String imageName = "tt_greenbrandlogo.png";
        TemporaryFileManager fileManager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(
                        FileImageAssetFactoryTestCase.class, imageName));

        fileManager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

View Full Code Here

     */
    public void testNoExtension() throws Exception {

        final String image = "image";
        TemporaryFileManager fileManager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(
                        FileImageAssetFactoryTestCase.class, image));

        fileManager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

View Full Code Here

     */
    public void testNoEncoding() throws Exception {

        final String image = "image.unknown";
        TemporaryFileManager fileManager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(
                        FileImageAssetFactoryTestCase.class, image));

        fileManager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

View Full Code Here

TOP

Related Classes of com.volantis.synergetics.testtools.io.ResourceTemporaryFileCreator

Copyright © 2018 www.massapicom. 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.