All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.gwt.test.internal.patchers.NavigatorPatcher Maven / Gradle / Ivy

There is a newer version: 0.63
Show newest version
package com.googlecode.gwt.test.internal.patchers;

import com.google.gwt.user.client.Window.Navigator;
import com.googlecode.gwt.test.patchers.PatchClass;
import com.googlecode.gwt.test.patchers.PatchMethod;

@PatchClass(Navigator.class)
class NavigatorPatcher {

    @PatchMethod
    static String getAppCodeName() {
        return "gwt-test-utils fake navigator-codeName";
    }

    @PatchMethod
    static String getAppName() {
        return "gwt-test-utils fake navigator";
    }

    @PatchMethod
    static String getAppVersion() {
        return "gwt-test-utils-1.0.0";
    }

    @PatchMethod
    static String getPlatform() {
        return "only the JVM @gwt-test-utils";
    }

    @PatchMethod
    static String getUserAgent() {
        return "gwt-test-utils fake navigator user-agent";
    }

    @PatchMethod
    static boolean isJavaEnabled() {
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy