use of org.jboss.tools.hibernate.runtime.common.AbstractQueryFacade in project jbosstools-hibernate by jbosstools.
the class QueryFacadeTest method setUp.
@Before
public void setUp() {
Query queryProxy = (Query) Proxy.newProxyInstance(FACADE_FACTORY.getClassLoader(), new Class[] { Query.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
methodName = method.getName();
arguments = args;
if ("list".equals(method.getName())) {
return LIST;
} else if ("getReturnAliases".equals(method.getName())) {
return RETURN_ALIASES;
} else if ("getReturnTypes".equals(method.getName())) {
return RETURN_TYPES;
} else
return null;
}
});
query = new AbstractQueryFacade(FACADE_FACTORY, queryProxy) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractQueryFacade in project jbosstools-hibernate by jbosstools.
the class QueryFacadeTest method setUp.
@Before
public void setUp() {
Query queryProxy = (Query) Proxy.newProxyInstance(FACADE_FACTORY.getClassLoader(), new Class[] { Query.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
methodName = method.getName();
arguments = args;
if ("list".equals(method.getName())) {
return LIST;
} else if ("getReturnAliases".equals(method.getName())) {
return RETURN_ALIASES;
} else if ("getReturnTypes".equals(method.getName())) {
return RETURN_TYPES;
} else
return null;
}
});
query = new AbstractQueryFacade(FACADE_FACTORY, queryProxy) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractQueryFacade in project jbosstools-hibernate by jbosstools.
the class QueryFacadeTest method setUp.
@Before
public void setUp() {
Query queryProxy = (Query) Proxy.newProxyInstance(FACADE_FACTORY.getClassLoader(), new Class[] { Query.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
methodName = method.getName();
arguments = args;
if ("list".equals(method.getName())) {
return LIST;
} else if ("getReturnAliases".equals(method.getName())) {
return RETURN_ALIASES;
} else if ("getReturnTypes".equals(method.getName())) {
return RETURN_TYPES;
} else
return null;
}
});
query = new AbstractQueryFacade(FACADE_FACTORY, queryProxy) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractQueryFacade in project jbosstools-hibernate by jbosstools.
the class QueryFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
Query queryProxy = (Query) Proxy.newProxyInstance(FACADE_FACTORY.getClassLoader(), new Class[] { Query.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
methodName = method.getName();
arguments = args;
if ("list".equals(method.getName())) {
return LIST;
} else if ("getReturnAliases".equals(method.getName())) {
return RETURN_ALIASES;
} else if ("getReturnTypes".equals(method.getName())) {
return RETURN_TYPES;
} else
return null;
}
});
query = new AbstractQueryFacade(FACADE_FACTORY, queryProxy) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractQueryFacade in project jbosstools-hibernate by jbosstools.
the class QueryFacadeTest method beforeEach.
@BeforeEach
public void beforeEach() {
Query<?> queryProxy = (Query<?>) Proxy.newProxyInstance(FACADE_FACTORY.getClassLoader(), new Class[] { Query.class }, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
methodName = method.getName();
arguments = args;
if ("list".equals(method.getName())) {
return LIST;
} else if ("getReturnAliases".equals(method.getName())) {
return RETURN_ALIASES;
} else if ("getReturnTypes".equals(method.getName())) {
return RETURN_TYPES;
} else
return null;
}
});
query = new AbstractQueryFacade(FACADE_FACTORY, queryProxy) {
};
}
Aggregations