Browse Source

Fix formatting of VaadinBrowserFactory

Change-Id: I9b650faf2c35d64230b65791fcc28be2c421f0e6
tags/7.7.0.alpha2
Henri Sara 8 years ago
parent
commit
b5d5a92208

+ 8
- 6
uitest/src/test/java/com/vaadin/tests/tb3/VaadinBrowserFactory.java View File

/* /*
* Copyright 2000-2014 Vaadin Ltd. * Copyright 2000-2014 Vaadin Ltd.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of * use this file except in compliance with the License. You may obtain a copy of
* the License at * the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the


public class VaadinBrowserFactory extends DefaultBrowserFactory { public class VaadinBrowserFactory extends DefaultBrowserFactory {


TestBenchBrowserFactory delegate = null;
TestBenchBrowserFactory delegate = null;


@Override @Override
public DesiredCapabilities create(Browser browser) { public DesiredCapabilities create(Browser browser) {
.getClassLoader().loadClass(browserFactoryClass) .getClassLoader().loadClass(browserFactoryClass)
.newInstance(); .newInstance();
} catch (Exception e) { } catch (Exception e) {
getLogger().warning("Failed to instantiate browser factory " + browserFactoryClass);
getLogger().warning(
"Failed to instantiate browser factory "
+ browserFactoryClass);
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
return delegate.create(browser); return delegate.create(browser);
} }


return doCreate(browser);
return doCreate(browser);
} }


public DesiredCapabilities doCreate(Browser browser) { public DesiredCapabilities doCreate(Browser browser) {

Loading…
Cancel
Save