Skip to content

Instantly share code, notes, and snippets.

View ivanursul's full-sized avatar

Ivan Ursul ivanursul

View GitHub Profile
package org.ivanursul.guice.application;
import javax.inject.Inject;
import org.ivanursul.guice.service.NotificationService;
public class DefaultApplication {
private NotificationService service;
package org.ivanursul.guice.application;
import javax.inject.Inject;
import org.ivanursul.guice.service.NotificationService;
public class DefaultApplication {
private NotificationService service;
package org.ivanursul.guice.injector;
import org.ivanursul.guice.service.FacebookService;
import org.ivanursul.guice.service.NotificationService;
import com.google.inject.AbstractModule;
public class AppInjector extends AbstractModule {
@Override
package org.ivanursul.guice;
import org.ivanursul.guice.application.DefaultApplication;
import org.ivanursul.guice.injector.AppInjector;
import com.google.inject.Guice;
import com.google.inject.Injector;
public class ClientApplication {
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>provided</scope>
</dependency>
<mvc:annotation-driven validator="validator">
<mvc:argument-resolvers>
<ref bean="offsetAnnotationHandlerMethodArgumentResolver" />
<ref bean="limitAnnotationHandlerMethodArgumentResolver" />
<ref bean="pagedRequestHandlerMethodArgumentResolver" />
</mvc:argument-resolvers>
<mvc:message-converters>
<ref bean="jsonMessageConverter" />
<ref bean="xmlMessageConverter" />
</mvc:message-converters>
package org.springframework.beans.factory.xml;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanDefinitionHolder;
public interface NamespaceHandler {
void init();
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>robot-framework</groupId>
<artifactId>robot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
*** Settings ***
Library SeleniumLibrary
Test Set Up Start Selenium Server
Test Tear Down Stop Selenium Server
*** Test Cases ***
Basic test case
Open Browser https://twitter.com