Spring Boot: от начала до продакшена
2015-05-04 14:05:03
+ развернуть текст сохранённая копия
В данной статье я попробую расписать все шаги, которые потребуются для создания небольшого проекта на Spring Boot и развертывания его на боевом сервере.
Читать дальше →
Тэги:
boot,
java,
spring,
веб-разработка,
программирование,
теги,
читают
GWT: How to use @UiTemplate
2015-05-03 20:50:16
Another useful GWT annotation is @UiTemplate. It can be used in theme switching. Originally any GWT ...
+ развернуть текст сохранённая копия
Another useful GWT annotation is @UiTemplate. It can be used in theme switching. Originally any GWT Widget can have only one *.ui.xml template. With @UiTemplate there could be two or more templates. Lets create two ui.xml files: 1. CustomWidget1.ui.xml <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <g:HTMLPanel> <g:Label text="CustomWidget1" /> </g:HTMLPanel> </ui:UiBinder> 2. CustomWidget2.ui.xml <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <g:HTMLPanel> <g:Label […]
Тэги:
gwt,
java,
uncategorized
GWT: How to use @UiFactory
2015-05-02 10:52:23
There is a way to escape using @UiConstructor. Instead of it we can use @UiFactory. The idea is ...
+ развернуть текст сохранённая копия
There is a way to escape using @UiConstructor. Instead of it we can use @UiFactory. The idea is simple again: remove @UiConstructor from our widget and add @UiFactory annotated method. Here is a Widget without @UiConstructor. public CustomPanel(String text) { initWidget(ourUiBinder.createAndBindUi(this)); myLabel.setText(text); } we would like to use this constructor. In order to do this, […]
Тэги:
@uifactory,
gwt,
java,
uibinder,
uncategorized,
widget
GWT: How to use @UiConstructor
2015-05-01 23:20:29
@UiConstructor is a special annotation for a custom widgets with *.ui.xml templates. In order to use ...
+ развернуть текст сохранённая копия
@UiConstructor is a special annotation for a custom widgets with *.ui.xml templates. In order to use it we can place it on a preferred constructor. @UiConstructor public MyPanel() { initWidget(uiBinder.createAndBindUi(this)); } This annotation can be used only if Inject package declared in a *.gwt.xml. <inherits name="com.google.gwt.inject.Inject"/> By default GWT 2.6 does not contain jar file […]
Тэги:
gwt,
java,
uncategorized
How to mock Java class with EasyMock
2015-05-01 18:34:05
... to mock required
Java class: to use ...
+ развернуть текст сохранённая копия
In the previous post I’ve covered topic of creation of mocks with Mockito. There is one more way to mock required Java class: to use EasyMock. Our unit-test should extend EasyMockSupport class. import org.easymock.EasyMockRule; import org.easymock.EasyMockSupport; import org.easymock.Mock; import org.easymock.TestSubject; import org.junit.Rule; import org.junit.Test; public class BusinessLogicTest extends EasyMockSupport { //... } Also this class […]
Тэги:
java,
junit,
mock,
uncategorized