-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide web integration test infrastructure #1778
- Loading branch information
Showing
75 changed files
with
1,336 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
modules/web-tests/src/com/haulmont/cuba/web/AppTestUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (c) 2008-2019 Haulmont. | ||
* | ||
* 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 the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.haulmont.cuba.web; | ||
|
||
import com.haulmont.cuba.core.global.Events; | ||
import com.haulmont.cuba.gui.theme.ThemeConstants; | ||
import com.haulmont.cuba.web.sys.AppCookies; | ||
import com.vaadin.server.VaadinRequest; | ||
import org.springframework.context.ApplicationContext; | ||
|
||
public final class AppTestUtils { | ||
|
||
private AppTestUtils() { | ||
} | ||
|
||
public static void setThemeConstants(App app, ThemeConstants themeConstants) { | ||
app.themeConstants = themeConstants; | ||
} | ||
|
||
public static void setCookies(App app, AppCookies appCookies) { | ||
app.cookies = appCookies; | ||
} | ||
|
||
public static void setConnection(App app, Connection connection) { | ||
app.connection = connection; | ||
} | ||
|
||
public static void setEvents(App app, Events events) { | ||
app.events = events; | ||
} | ||
|
||
public static void setApplicationContext(AppUI ui, ApplicationContext context) { | ||
ui.setApplicationContext(context); | ||
} | ||
|
||
public static void initUi(AppUI ui, VaadinRequest request) { | ||
ui.init(request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.