text stringlengths 3 1.18M |
|---|
/*-
* Copyright (C) 2007 The Android Open Source Project
*
* 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 ap... |
/*-
* Copyright 2010 Google Inc.
*
* 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 ... |
package com.wowoerp.service;
import com.wowoerp.model.User;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoun... |
package com.wowoerp.service.impl;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.util.ConvertUtil;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import java.util.Map;
import java.u... |
package com.wowoerp.service;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.util.ConvertUtil;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTran... |
package com.wowoerp.webapp.filter;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.FilterChain;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ServletRequ... |
package com.wowoerp.webapp.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Before;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.context.Co... |
package com.wowoerp.dao;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.SessionFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... |
package com.wowoerp.model;
import java.io.Serializable;
/**
* Base class for Model objects. Child objects should implement toString(),
* equals() and hashCode().
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public abstract class BaseObject implements Serializable {
/**
*... |
package com.wowoerp.model;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annot... |
package com.wowoerp.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Fetch... |
package com.wowoerp.model;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.springframework.security.core.GrantedAuthority;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pe... |
package com.wowoerp.model;
import java.io.Serializable;
import java.util.Comparator;
/**
* A simple JavaBean to represent label-value pairs. This is most commonly used
* when constructing user interface elements which have a label to be displayed
* to the user, and a corresponding value to be returned to the serve... |
package com.wowoerp.service;
import com.wowoerp.model.User;
import javax.jws.WebService;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import java.util.List;
/**
* Web Service interface so hierarchy of Generic Manager isn't carried... |
package com.wowoerp.service;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import com.wowoerp.model.Role;
import com.wowoerp.model.User;
import org.springframework.aop.AfterReturningAdvice;
impor... |
package com.wowoerp.service.impl;
import com.wowoerp.model.User;
public interface PasswordTokenManager {
/**
* {@inheritDoc}
*/
String generateRecoveryToken(User user);
/**
* {@inheritDoc}
*/
boolean isRecoveryTokenValid(User user, String token);
void inval... |
package com.wowoerp.service.impl;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.dao.GenericDao;
import com.wowoerp.service.GenericManager;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.Serializable;
import java.util.ArrayList;
i... |
package com.wowoerp.service.impl;
import com.wowoerp.dao.LookupDao;
import com.wowoerp.model.LabelValue;
import com.wowoerp.model.Role;
import com.wowoerp.service.LookupManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
im... |
package com.wowoerp.service.impl;
import com.wowoerp.dao.RoleDao;
import com.wowoerp.model.Role;
import com.wowoerp.service.RoleManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Implementation of RoleManager interface.... |
package com.wowoerp.service.impl;
import org.apache.commons.lang.StringUtils;
import com.wowoerp.dao.UserDao;
import com.wowoerp.model.User;
import com.wowoerp.service.MailEngine;
import com.wowoerp.service.UserExistsException;
import com.wowoerp.service.UserManager;
import com.wowoerp.service.UserService;
import org.... |
/**
*
*/
package com.wowoerp.service.impl;
import java.util.Date;
import javax.sql.DataSource;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang.math.RandomUtils;
import org.apache.commons.lang.time.DateUtils;
import com.wowoerp.model.User;
import org.springframework.beans.factory.a... |
/**
*
*/
package com.wowoerp.service.impl;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.model.User;
import org.springframework.beans.factory.annotation.Aut... |
package com.wowoerp.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.exception.VelocityException;
import org.springframework.core.io.ClassPathResource;
import org.springframework.mail.MailException;
i... |
package com.wowoerp.service;
import com.wowoerp.model.LabelValue;
import java.util.List;
/**
* Business Service Interface to talk to persistence layer and
* retrieve values for drop-down choice lists.
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public interface LookupManager {
/**... |
package com.wowoerp.service;
/**
* An exception that is thrown by classes wanting to trap unique
* constraint violations. This is used to wrap Spring's
* DataIntegrityViolationException so it's checked in the web layer.
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public class UserE... |
package com.wowoerp.service;
import com.wowoerp.model.Role;
import java.util.List;
/**
* Business Service Interface to handle communication between web and
* persistence layer.
*
* @author <a href="mailto:dan@getrolling.com">Dan Kibler </a>
*/
public interface RoleManager extends GenericManager<Role, Long> {
... |
package com.wowoerp.service;
import java.io.Serializable;
import java.util.List;
/**
* Generic Manager that talks to GenericDao to CRUD POJOs.
*
* <p>Extend this interface if you want typesafe (no casting necessary) managers
* for your domain objects.
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Rai... |
package com.wowoerp.service;
import com.wowoerp.dao.UserDao;
import com.wowoerp.model.User;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.password.PasswordEncoder;
import java.util.List;
/**
* Business Service Interface to handle communic... |
package com.wowoerp.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import org.springframework.context.i18n.LocaleContextHolder;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date... |
package com.wowoerp.util;
import org.apache.commons.beanutils.ConversionException;
import org.apache.commons.lang.StringUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* This class is converts a java.util.Date to a String and a String to a
* java.util.Date for use ... |
package com.wowoerp.util;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.model.LabelValue;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.... |
package com.wowoerp.util;
import org.apache.commons.beanutils.ConversionException;
import org.apache.commons.beanutils.Converter;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.text.DecimalFormat;
import java.text.ParseExcep... |
package com.wowoerp.util;
import org.apache.commons.beanutils.ConversionException;
import org.apache.commons.beanutils.Converter;
import org.apache.commons.lang.StringUtils;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* This class converts a ... |
package com.wowoerp.webapp.filter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import... |
package com.wowoerp.webapp.filter;
import com.wowoerp.Constants;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.web.filter.OncePerRequestFilter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
impo... |
package com.wowoerp.webapp.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.model.User;
import com.wowoerp.service.MailEngine;
import com.wowoerp.service.UserManager;
import com.wowoerp.webapp.util.RequestUtil;
import org.springframework.beans.... |
package com.wowoerp.webapp.controller;
import com.wowoerp.Constants;
import com.wowoerp.dao.SearchException;
import com.wowoerp.service.UserManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ExtendedModelMap;
i... |
package com.wowoerp.webapp.controller;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import com.wowoerp.model.User;
import com.wowoerp.webapp.util.RequestUtil;
import org.springframework.security.access.AccessDeniedException;
import org.s... |
package com.wowoerp.webapp.controller;
/**
* Command class to handle uploading of a file.
*
* <p>
* <a href="FileUpload.java.html"><i>View Source</i></a>
* </p>
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public class FileUpload {
private String name;
private b... |
package com.wowoerp.webapp.controller;
import java.util.Locale;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import com.wowoerp.Constants;
import com.wowoerp.model.Role;
import com.wowoerp.mo... |
package com.wowoerp.webapp.controller;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.wowoerp.Constants;
import com.wowoerp.model.User;
import com.wowoerp.service.RoleManager;
import com.wowoerp.service.UserExistsException;
... |
package com.wowoerp.webapp.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.webapp.listener.StartupListener;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframew... |
package com.wowoerp.webapp.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import com.wowoerp.model.User;
import com.wowoerp.service.MailEngine;
import com.wowoerp.service.UserManager;
import org.springframework.beans.factory.annota... |
package com.wowoerp.webapp.controller;
import com.wowoerp.Constants;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spr... |
package com.wowoerp.webapp.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Convenience class for setting and retrieving cookies.
... |
package com.wowoerp.webapp.util;
import org.apache.commons.validator.Field;
import org.apache.commons.validator.GenericValidator;
import org.apache.commons.validator.ValidatorAction;
import org.apache.commons.validator.util.ValidatorUtils;
import org.springframework.validation.Errors;
import org.springmodules.v... |
package com.wowoerp.webapp.spring;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.PropertyValue;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.fac... |
/*
Copyright (c) 2010, Chin Huang
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
/*
Copyright (c) 2010, Chin Huang
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... |
package com.wowoerp.webapp.listener;
import com.wowoerp.model.User;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.authentication.AuthenticationTrustResolverImpl;
import org.springframework.security.core.Authentication;
import org.springframewo... |
package com.wowoerp.webapp.listener;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import com.wowoerp.service.GenericManager;
import com.wowoerp.service.LookupManager;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
im... |
package com.wowoerp.webapp.taglib;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import java.lang.reflect.A... |
package com.wowoerp.webapp.taglib;
import com.wowoerp.model.LabelValue;
import org.displaytag.tags.el.ExpressionEvaluator;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Co... |
package com.wowoerp.webapp.taglib;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.Constants;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
import java.lang.reflect.AccessibleObj... |
package com.wowoerp.webapp.taglib;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.validator.Field;
import org.apache.commons.validator.Form;
import org.apache.commons.validator.ValidatorResources;
import org.springframework.beans.factory.BeanFactor... |
/*
Copyright (c) 2010, Chin Huang
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
package com.wowoerp.dao;
/**
*
* @author jgarcia
*/
public class SearchException extends RuntimeException {
public SearchException(Throwable ex) {
super(ex);
}
}
|
package com.wowoerp.dao.spring;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.PropertyValue;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config... |
package com.wowoerp.dao;
import com.wowoerp.model.Role;
import java.util.List;
/**
* Lookup Data Access Object (GenericDao) interface. This is used to lookup values in
* the database (i.e. for drop-downs).
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public interface LookupDao {
/... |
package com.wowoerp.dao;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* Generic DAO (Data Access Object) with common methods to CRUD POJOs.
*
* <p>Extend this interface if you want typesafe (no casting necessary) DAO's for your
* domain objects.
*
* @author <a href="mailto:bwno... |
package com.wowoerp.dao;
import com.wowoerp.model.Role;
/**
* Role Data Access Object (DAO) interface.
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public interface RoleDao extends GenericDao<Role, Long> {
/**
* Gets role information based on rolename
* @param rolename the ... |
package com.wowoerp.dao.hibernate;
import com.wowoerp.dao.UserDao;
import com.wowoerp.model.User;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbcTemplate;
import org.springframework.orm.hibernate4.Sess... |
package com.wowoerp.dao.hibernate;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.dao.GenericDao;
import com.wowoerp.dao.SearchException;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... |
package com.wowoerp.dao.hibernate;
import java.util.Collection;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.queryParser.MultiFieldQueryParser;
import org.apache.luce... |
package com.wowoerp.dao.hibernate;
import com.wowoerp.dao.RoleDao;
import com.wowoerp.model.Role;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
/**
* This class interacts with hibernate ... |
package com.wowoerp.dao.hibernate;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wowoerp.dao.LookupDao;
import com.wowoerp.model.Role;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... |
package com.wowoerp.dao;
import com.wowoerp.model.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Tran... |
package com.wowoerp;
/**
* Constant values used throughout the application.
*
* @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
*/
public final class Constants {
private Constants() {
// hide me
}
//~ Static fields/initializers =============================================
... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
package com.googlecode.mgwt.theme.client;
import com.google.gwt.core.client.GWT;
import com.googlecode.mgwt.ui.client.MGWT;
import com.googlecode.mgwt.ui.client.theme.MGWTClientBundle;
import com.googlecode.mgwt.ui.client.theme.MGWTTheme;
public class CustomTheme implements MGWTTheme {
private MGWTClientBundle bundl... |
/*
* Copyright 2011 Daniel Kurka
*
* 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 ... |
package versi.vitro.oaiserviceprovider.model;
import static versi.vitro.oaiserviceprovider.helper.Constant.AND_HARVEST_OUT_MODEL_NAME;
import static versi.vitro.oaiserviceprovider.helper.Constant.ANDS_TRIPLES_MODEL_NAME;
import static versi.vitro.oaiserviceprovider.helper.Constant.NEW_ANDS_TRIPLES_MODEL_NAME;
import s... |
package versi.vitro.oaiserviceprovider.xml;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.testng.annotations.Test;
public class InputTest {
@Test
public void testGetStringData() throws IOException {
final String dummyInputy = "any old thing";
... |
package versi.vitro.oaiserviceprovider.service.transformer.impl;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.service... |
package versi.vitro.oaiserviceprovider.service.jena.impl;
import java.io.PrintWriter;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.service.jena.api.JenaHelper;
import versi.vitro.oaiservi... |
package versi.vitro.oaiserviceprovider.service.jena.impl;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.service.jena.api.ModelBuilder;
import versi.vitro.oaiserviceprovider.service.jena.impl.ModelBuilderImpl;
import com.hp.hpl.jena.rdf.model.Model;
public class ModelBuilderImplTest {
... |
package versi.vitro.oaiserviceprovider.service.jena.helper;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelMaker;
import com.hp.hpl.jena.util.iterator... |
package versi.vitro.oaiserviceprovider.service.validation.impl;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.transform.Source;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.an... |
package versi.vitro.oaiserviceprovider.service.validation.helper;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSourc... |
package versi.vitro.oaiserviceprovider.service.handle;
import junit.framework.Assert;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.service.handle.api.HandleService;
import versi.vitro.oai... |
package versi.vitro.oaiserviceprovider.service.exporter.impl;
import static versi.vitro.oaiserviceprovider.helper.Constant.AND_HARVEST_OUT_MODEL_NAME;
import static versi.vitro.oaiserviceprovider.helper.Constant.XSLT_LOCATION;
import java.io.ByteArrayOutputStream;
import org.jmock.Expectations;
import org.jmock.Mock... |
package versi.vitro.oaiserviceprovider.helper;
import org.testng.annotations.Test;
public class GeneralHelperImplTest {
@Test
public void testReadResourceAsString()
{
final String expectedResource = "Dummy resource\n";
GeneralHelperImpl generalHelper = new GeneralHelperImpl();
String resource = gene... |
package versi.vitro.oaiserviceprovider.helper;
import java.net.MalformedURLException;
import java.net.URL;
import org.jmock.Mockery;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.service.handle.helper.HandleHelper;
impo... |
package versi.vitro.oaiserviceprovider.application;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import versi.vitro.oaiserviceprovider.application.VitroOAIProvider;
import versi.vitro.oaiserviceprovider.model.ExportableModelGe... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source ... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source ... |
/*
* Copyright (c) 2010, VeRSI Consortium
* (Victorian eResearch Strategic Initiative, Australia)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.