// Path: common/src/main/java/com/saucelabs/common/SauceApi.java
// public class SauceApi {
// 
//     private WebDriver webDriver;
// 
//     public SauceApi(WebDriver webDriver) {
//         this.webDriver = webDriver;
//     }
// 
//     public SauceApi() {
//     }
// 
//     public void setTestStatus(String testResult) {
//         //TODO finish implementation
//         //testResult = testResult.toLowerCase();
//         //isValidTestStatus(testResult);
//         new JavaScriptInvoker(webDriver).
//             executeScript(SauceJavaScriptStrings.testStatusPrefix + testResult);
//     }
// 
// //    private void isValidTestStatus(String testResult) throws InvalidTestStatusException {
// //        if(!testResult.equals("passed")  || !testResult.equals("failed")  ||
// //            !testResult.equals("true") || !testResult.equals("false"))
// //        {
// //            throw new InvalidTestStatusException();
// //        }
// //    }
// 
//     public void setTestName(String testName) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.testNamePrefix + testName);
//     }
// 
//     public void setTestTags(String tags) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.tagsPrefix + tags);
//     }
// 
//     public void comment(String comment) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.sauceContextPrefix + comment);
//     }
// 
//     public void setBuildName(String buildName) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.buildPrefix + buildName);
//     }
// 
//     public void setBreakpoint() {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.breakStatement);
//     }
// }
// 
// Path: common/src/main/java/com/saucelabs/common/SauceJavaScriptStrings.java
// public class SauceJavaScriptStrings{
//     public static String tagsPrefix = "sauce:job-tags=";
//     public static String sauceContextPrefix = "sauce:context=";
//     public static String testNamePrefix = "sauce:job-name=";
//     public static String buildPrefix = "sauce:job-build=";
//     public static String breakStatement = "sauce: break";
//     public static String testStatusPrefix = "sauce:job-result=";
// }


import com.saucelabs.common.SauceApi;
import com.saucelabs.common.SauceJavaScriptStrings;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
package com.saucelabs.common.unit;



public class SauceJavaScriptStringsTest {

    @Test
    public void shouldBeCorrectTestNamePrefix()
    {
// Path: common/src/main/java/com/saucelabs/common/SauceApi.java
// public class SauceApi {
// 
//     private WebDriver webDriver;
// 
//     public SauceApi(WebDriver webDriver) {
//         this.webDriver = webDriver;
//     }
// 
//     public SauceApi() {
//     }
// 
//     public void setTestStatus(String testResult) {
//         //TODO finish implementation
//         //testResult = testResult.toLowerCase();
//         //isValidTestStatus(testResult);
//         new JavaScriptInvoker(webDriver).
//             executeScript(SauceJavaScriptStrings.testStatusPrefix + testResult);
//     }
// 
// //    private void isValidTestStatus(String testResult) throws InvalidTestStatusException {
// //        if(!testResult.equals("passed")  || !testResult.equals("failed")  ||
// //            !testResult.equals("true") || !testResult.equals("false"))
// //        {
// //            throw new InvalidTestStatusException();
// //        }
// //    }
// 
//     public void setTestName(String testName) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.testNamePrefix + testName);
//     }
// 
//     public void setTestTags(String tags) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.tagsPrefix + tags);
//     }
// 
//     public void comment(String comment) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.sauceContextPrefix + comment);
//     }
// 
//     public void setBuildName(String buildName) {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.buildPrefix + buildName);
//     }
// 
//     public void setBreakpoint() {
//         new JavaScriptInvoker(webDriver).executeScript(SauceJavaScriptStrings.breakStatement);
//     }
// }
// 
// Path: common/src/main/java/com/saucelabs/common/SauceJavaScriptStrings.java
// public class SauceJavaScriptStrings{
//     public static String tagsPrefix = "sauce:job-tags=";
//     public static String sauceContextPrefix = "sauce:context=";
//     public static String testNamePrefix = "sauce:job-name=";
//     public static String buildPrefix = "sauce:job-build=";
//     public static String breakStatement = "sauce: break";
//     public static String testStatusPrefix = "sauce:job-result=";
// }


// Path: common/src/test/java/com/saucelabs/common/unit/SauceJavaScriptStringsTest.java
import com.saucelabs.common.SauceApi;
import com.saucelabs.common.SauceJavaScriptStrings;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

package com.saucelabs.common.unit;



public class SauceJavaScriptStringsTest {

    @Test
    public void shouldBeCorrectTestNamePrefix()
    {
        Assert.assertEquals("sauce:job-name=", SauceJavaScriptStrings.testNamePrefix);