buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools....
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMP...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ModelNode fullModel = Resource.Tools.readModel(context.readResource(PathAddress.EMP...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeHttpManagementService(context); RemotingServices.removeConnectorServices(context, ManagementRemotingServices.HTTP_CONNECTOR); context.removeService(Remoting...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeHttpManagementService(context); RemotingServices.removeConnectorServices(context, ManagementRemotingServices.HTTP_CONNECTOR); context.removeService(Remoting...
public void testScopedEJBClientContexts() throws Exception { InitialContext ctx = new InitialContext(getEjbClientProperties(System.getProperty("node0", "127.0.0.1"), 8080)); try { String lookupName = "ejb:/" + ARCHIVE_NAME + "/" + StatelessBean.class.getSimpleName() + "!" + StatelessIfac...
public void testScopedEJBClientContexts() throws Exception { InitialContext ctx = new InitialContext(getEjbClientProperties(System.getProperty("node0", "127.0.0.1"), 4447)); try { String lookupName = "ejb:/" + ARCHIVE_NAME + "/" + StatelessBean.class.getSimpleName() + "!" + StatelessIfac...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context ctx = null; try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context ctx = null; try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6...
protected MyObject lookup() { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "http-remoting://" + address + ":8080"); env.put...
protected MyObject lookup() { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "remote://" + address + ":4447"); env.put(Contex...
protected MyObject lookup() throws ServletException { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "http-remoting://" + addres...
protected MyObject lookup() throws ServletException { try { Properties env = new Properties(); String address = System.getProperty("node0", "localhost"); // format possible IPv6 address address = NetworkUtils.formatPossibleIpv6Address(address); env.put(Context.PROVIDER_URL, "remote://" + address + ":4...
protected ServiceName constructServiceName(final String name) { return UndertowService.LISTENER.append(name); } @Override AbstractListenerService<? extends AbstractListenerService> createService(String name, final String serverName, final OperationContext context, ModelNode model) throws Operat...
protected ServiceName constructServiceName(final String name) { return UndertowService.LISTENER.append(name); } @Override AbstractListenerService<? extends AbstractListenerService> createService(String name, OperationContext context, ModelNode model) throws OperationFailedException { St...
private static String VERSION; static { try { Properties props = new Properties(); props.load(ModelTestControllerVersion.class.getResourceAsStream("version.properties")); VERSION = props.getProperty("as.version"); } catch (Exceptio...
private static String VERSION; static { try { Properties props = new Properties(); props.load(ModelTestControllerVersion.class.getResourceAsStream("version.properties")); VERSION = props.getProperty("as.version"); } catch (Exceptio...
public void fail(Object msgId) { DRPCMessageId did = (DRPCMessageId) msgId; DistributedRPC.Iface client; if(_local_drpc_id == null) { client = _clients.get(did.index); } else { client = (ILocalDRPC) ServiceRegistry.getService(_local_drpc_id); ...
public void fail(Object msgId) { DRPCMessageId did = (DRPCMessageId) msgId; DistributedRPC.Iface client; if(_local_drpc_id == null) { client = _clients.get(did.index); } else { client = (DistributedRPC.Iface) ServiceRegistry.getService(_local_drpc_id)...
public Principal getPrincipal() { if (this.user != null) { return this.user; } checkNativeSessionInitialized(); return getNativeSession().getUserPrincipal(); }
public Principal getPrincipal() { if (this.user != null) { return this.user; } checkNativeSessionInitialized(); return (isOpen() ? getNativeSession().getUserPrincipal() : null); }
public static boolean isWebServiceDeployment(final DeploymentUnit unit) { return ASHelper.getOptionalAttachment(unit, WSAttachmentKeys.DEPLOYMENT_TYPE_KEY) != null; }
public static boolean isWebServiceDeployment(final DeploymentUnit unit) { return ASHelper.getOptionalAttachment(unit, WSAttachmentKeys.DEPLOYMENT_KEY) != null; }
public void serviceFailed(final ServiceController<?> serviceController, final StartException reason) { log.errorf(reason, "Service [%s] failed.", serviceController.getName()); } }); // Install the process controller client final ProcessControllerConnection...
public void serviceFailed(final ServiceController<?> serviceController, final StartException reason) { log.errorf(reason, "Service [%s] failed.", serviceController.getName()); } }); // Install the process controller client final ProcessControllerConnection...
public RealVector solveInPlace(final RealLinearOperator a, final RealLinearOperator m, final RealVector b, final RealVector x0) throws NullArgumentException, NonPositiveDefiniteOperatorException, ...
public RealVector solveInPlace(final RealLinearOperator a, final RealLinearOperator m, final RealVector b, final RealVector x0) throws NullArgumentException, NonPositiveDefiniteOperatorException, ...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { String opName = operation.require(ModelDescriptionConstants.OP).asString(); PathAddress address = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)); ...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { String opName = operation.require(ModelDescriptionConstants.OP).asString(); PathAddress address = PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR)); ...
public static String keep(String str, String... set) { if (str == null) { return null; } if (str.length() == 0 || deepEmpty(set)) { return ""; } return modify(str, set, true); }
public static String keep(String str, String... set) { if (str == null) { return null; } if (str.length() == 0 || deepEmpty(set)) { return StringUtils.EMPTY; } return modify(str, set, true); }
public static String[] getStackFrames(Throwable throwable) { if (throwable == null) { return ArrayUtils.EMPTY_STRING_ARRAY; } return getStackFrames(getStackTrace(throwable)); } //----------------------------------------------------------------------- /** * <p>Re...
public static String[] getStackFrames(Throwable throwable) { if (throwable == null) { return ArrayUtils.EMPTY_STRING_ARRAY; } return getStackFrames(getStackTrace(throwable)); } //----------------------------------------------------------------------- /** * <p>Re...
public static StrMatcher charSetMatcher(String chars) { if (chars == null || chars.length() == 0) { return NONE_MATCHER; } if (chars.length() == 1) { return new CharMatcher(chars.charAt(0)); } return new CharSetMatcher(chars.toCharArray()); }
public static StrMatcher charSetMatcher(String chars) { if (StringUtils.isEmpty(chars)) { return NONE_MATCHER; } if (chars.length() == 1) { return new CharMatcher(chars.charAt(0)); } return new CharSetMatcher(chars.toCharArray()); }
public Channel createChannel(String id) throws Exception { JChannel channel = new MuxChannel(this); // We need to synchronize on shared transport, // so we don't attempt to init a shared transport multiple times TP transport = channel.getProtocolStack().getTransport(); if (t...
public Channel createChannel(String id) throws Exception { JChannel channel = new MuxChannel(this); // We need to synchronize on shared transport, // so we don't attempt to init a shared transport multiple times TP transport = channel.getProtocolStack().getTransport(); if (t...
private void parseSecurityConfig_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse all security attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.SECURITY_SUPPORT_SSL, Attribute.SECURITY_ADD_COMPONENT_INTERCEPTOR, Attribut...
private void parseSecurityConfig_1_0(XMLExtendedStreamReader reader, ModelNode node) throws XMLStreamException { // parse all security attributes. EnumSet<Attribute> expectedAttributes = EnumSet.of(Attribute.SECURITY_SUPPORT_SSL, Attribute.SECURITY_ADD_COMPONENT_INTERCEPTOR, Attribut...
public static void addService(final ServiceTarget target) { TransactionManagerService service = new TransactionManagerService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); // The 'jbosgi' prefix followed by the FQN of the service interface allows the OSGi la...
public static void addService(final ServiceTarget target) { TransactionManagerService service = new TransactionManagerService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); // The 'jbosgi' prefix followed by the FQN of the service interface allows the OSGi la...
public static void addService(final ServiceTarget target) { TransactionSynchronizationRegistryService service = new TransactionSynchronizationRegistryService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); serviceBuilder.addAliases(ServiceName.of("jbosgi", Tra...
public static void addService(final ServiceTarget target) { TransactionSynchronizationRegistryService service = new TransactionSynchronizationRegistryService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); serviceBuilder.addAliases(ServiceName.of("jbosgi", "xs...
public static void addService(final ServiceTarget target) { UserTransactionService service = new UserTransactionService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); serviceBuilder.addAliases(ServiceName.of("jbosgi", UserTransaction.class.getName())); ...
public static void addService(final ServiceTarget target) { UserTransactionService service = new UserTransactionService(); ServiceBuilder<?> serviceBuilder = target.addService(SERVICE_NAME, service); serviceBuilder.addAliases(ServiceName.of("jbosgi", "xservice", UserTransaction.class.getName...
private void parseResourceAdapter(final XMLExtendedStreamReader reader, final List<ModelNode> list, ModelNode parentAddress) throws XMLStreamException, ParserException, ValidateException { final ModelNode raAddress = parentAddress.clone(); final ModelNode operation = new ModelNode(); ...
private void parseResourceAdapter(final XMLExtendedStreamReader reader, final List<ModelNode> list, ModelNode parentAddress) throws XMLStreamException, ParserException, ValidateException { final ModelNode raAddress = parentAddress.clone(); final ModelNode operation = new ModelNode(); ...
private static void validateOnePieceOfContent(final ModelNode content) throws OperationFailedException { // TODO: implement overlays if (content.asList().size() != 1) throw createFailureException("Only 1 piece of content is current supported (JBAS-9020)"); }
private static void validateOnePieceOfContent(final ModelNode content) throws OperationFailedException { // TODO: implement overlays if (content.asList().size() != 1) throw createFailureException("Only 1 piece of content is current supported (AS7-431"); }
public void testLongIntInteractions01() { evaluate("0x20 * 2L", 64L, Long.class); // ask for the result to be made into an Integer evaluateAndAskForReturnType("0x20 * 2L", 64, Integer.class); // ask for the result to be made into an Integer knowing that it will not fit evaluateAndCheckError("0x1220 * 0xfffff...
public void testLongIntInteractions01() { evaluate("0x20 * 2L", 64L, Long.class); // ask for the result to be made into an Integer evaluateAndAskForReturnType("0x20 * 2L", 64, Integer.class); // ask for the result to be made into an Integer knowing that it will not fit evaluateAndCheckError("0x1220 * 0xfffff...
private CacheContainerReadAttributeHandler() { this(CacheContainerResourceDefinition.CACHE_CONTAINER_ATTRIBUTES); }
private CacheContainerReadAttributeHandler() { this(CacheContainerResourceDefinition.ATTRIBUTES); }
public CacheContainerWriteAttributeHandler() { this(CacheContainerResourceDefinition.CACHE_CONTAINER_ATTRIBUTES); }
public CacheContainerWriteAttributeHandler() { this(CacheContainerResourceDefinition.ATTRIBUTES); }
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_STORE,...
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_STORE,...
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the file store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_S...
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the file store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_S...
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the file store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_S...
private void parseFileStore(XMLExtendedStreamReader reader, ModelNode cache, List<ModelNode> operations) throws XMLStreamException { // ModelNode for the file store add operation ModelNode storeAddress = cache.get(ModelDescriptionConstants.OP_ADDR).clone() ; storeAddress.add(ModelKeys.FILE_S...
public void testCacheContainerRemoveRemoveSequence() throws Exception { // Parse and install the XML into the controller String subsystemXml = getSubsystemXml() ; KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build(); ModelNode addContai...
public void testCacheContainerRemoveRemoveSequence() throws Exception { // Parse and install the XML into the controller String subsystemXml = getSubsystemXml() ; KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build(); ModelNode addContai...
protected static PathAddress getCacheContainerAddress(String containerName) { return PathAddress.pathAddress(InfinispanExtension.SUBSYSTEM_PATH).append(ModelKeys.CACHE_CONTAINER, containerName); }
protected static PathAddress getCacheContainerAddress(String containerName) { return PathAddress.pathAddress(InfinispanSubsystemResourceDefinition.PATH).append(ModelKeys.CACHE_CONTAINER, containerName); }
private void checkLegacyParserStatisticsTrue(ModelNode subsystem) { if (xmlFile.endsWith("1_0.xml") || xmlFile.endsWith("1_1.xml") || xmlFile.endsWith("1_2.xml") || xmlFile.endsWith("1_3.xml") || xmlFile.endsWith("1_4.xml")) { for (Property containerProp : subsystem.get(CacheContainerResourceDef...
private void checkLegacyParserStatisticsTrue(ModelNode subsystem) { if (xmlFile.endsWith("1_0.xml") || xmlFile.endsWith("1_1.xml") || xmlFile.endsWith("1_2.xml") || xmlFile.endsWith("1_3.xml") || xmlFile.endsWith("1_4.xml")) { for (Property containerProp : subsystem.get(CacheContainerResourceDef...
public void testProtocolStackAddRemoveSequenceWithParameters() throws Exception { // Parse and install the XML into the controller String subsystemXml = getSubsystemXml() ; KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build(); // add a p...
public void testProtocolStackAddRemoveSequenceWithParameters() throws Exception { // Parse and install the XML into the controller String subsystemXml = getSubsystemXml() ; KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystemXml).build(); // add a p...
public SubnetMatchCriteriaElement(XMLExtendedStreamReader reader) throws XMLStreamException { super(reader, Element.SUBNET_MATCH); // Handle attributes String value = null; byte[] net = null; int mask = -1; final int count = reader.getAttributeCount(); ...
public SubnetMatchCriteriaElement(XMLExtendedStreamReader reader) throws XMLStreamException { super(reader, Element.SUBNET_MATCH); // Handle attributes String value = null; byte[] net = null; int mask = -1; final int count = reader.getAttributeCount(); ...
protected final String createTargetUrl(Map<String, Object> model, HttpServletRequest request) throws UnsupportedEncodingException { // Prepare target URL. StringBuilder targetUrl = new StringBuilder(); if (this.contextRelative && getUrl().startsWith("/")) { // Do not apply context path to relative URLs....
protected final String createTargetUrl(Map<String, Object> model, HttpServletRequest request) throws UnsupportedEncodingException { // Prepare target URL. StringBuilder targetUrl = new StringBuilder(); if (this.contextRelative && getUrl().startsWith("/")) { // Do not apply context path to relative URLs....
public void flashMap() throws Exception { RedirectView rv = new RedirectView(); rv.setUrl("http://url.somewhere.com/path"); rv.setHttp10Compatible(false); MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); FlashMap flashMap = new...
public void flashMap() throws Exception { RedirectView rv = new RedirectView(); rv.setUrl("http://url.somewhere.com/path"); rv.setHttp10Compatible(false); MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); FlashMap flashMap = new...
public CMAESOptimizer(int lambda, double[] inputSigma, double[][] boundaries, int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics) { ...
public CMAESOptimizer(int lambda, double[] inputSigma, double[][] boundaries, int maxIterations, double stopFitness, boolean isActiveCMA, int diagonalOnly, int checkFeasableCount, RandomGenerator random, boolean generateStatistics) { ...
public int compare(final K o1, final K o2) { if (o1 == null) { return o2 == null ? 0 : -1; } else if (o2 == null) { return 1; } return ((Comparable<K>)o1).compareTo(o2); } /** * Returns true if bitIndex is a {@link KeyAnalyzer#OUT_O...
public int compare(final K o1, final K o2) { if (o1 == null) { return o2 == null ? 0 : -1; } else if (o2 == null) { return 1; } return ((Comparable<K>)o1).compareTo(o2); } /** * Returns true if bitIndex is a {@link KeyAnalyzer#OUT_O...
public abstract void readExternal(ObjectInput in) throws IOException;
public abstract void readExternal(ObjectInput in) throws IOException, ClassNotFoundException;
protected void parseStatefulBean(final XMLExtendedStreamReader reader, final List<ModelNode> operations, final ModelNode ejb3SubsystemAddOperation) throws XMLStreamException { final int count = reader.getAttributeCount(); final EnumSet<EJB3SubsystemXMLAttribute> missingRequiredAttributes = EnumSet.o...
protected void parseStatefulBean(final XMLExtendedStreamReader reader, final List<ModelNode> operations, final ModelNode ejb3SubsystemAddOperation) throws XMLStreamException { final int count = reader.getAttributeCount(); final EnumSet<EJB3SubsystemXMLAttribute> missingRequiredAttributes = EnumSet.o...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws IllegalArgumentException, OperationFailedException { int initialMaxSize = FilePassivationStoreResourceDefinition...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws IllegalArgumentException, OperationFailedException { int initialMaxSize = FilePassivationStoreResourceDefinition...
public ModelNode fixModel(ModelNode modelNode) { // Legacy parser stores incorrect type ModelNode iiopEnabled = modelNode.get("service", "iiop", "enable-by-default"); if (iiopEnabled.getType() == ModelType.STRING) { iiopEnabled.set(iiopEnabled.asBoolean()); ...
public ModelNode fixModel(ModelNode modelNode) { // Legacy parser stores incorrect type ModelNode iiopEnabled = modelNode.get("service", "iiop", "enable-by-default"); if (iiopEnabled.getType() == ModelType.STRING) { iiopEnabled.set(iiopEnabled.asBoolean()); ...
public void testIsAssignable() throws SecurityException, NoSuchMethodException, NoSuchFieldException { List list0 = null; List<Object> list1 = null; List<?> list2 = null; List<? super Object> list3 = null; List<String> list4 = null; List<? extends String> ...
public void testIsAssignable() throws SecurityException, NoSuchMethodException, NoSuchFieldException { List list0 = null; List<Object> list1 = null; List<?> list2 = null; List<? super Object> list3 = null; List<String> list4 = null; List<? extends String> ...
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(AuditLevel.SUCCESS); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal.getName() : "null"); ...
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(level); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal.getName() : "null"); ctxMap....
public void setAllowedFields(WebDataBinder dataBinder) { dataBinder.setDisallowedFields(new String[] {"id"}); }
public void setAllowedFields(WebDataBinder dataBinder) { dataBinder.setDisallowedFields("id"); }
protected void populateModel(ModelNode operation, ModelNode model) { populateAddModel(operation, model, CONNECTION_PROPERTIES, DATASOURCE_ATTRIBUTE); }
protected void populateModel(ModelNode operation, ModelNode model) { populateAddModel(operation, model, CONNECTION_PROPERTIES.getName(), DATASOURCE_ATTRIBUTE); }
public ModelNode parse(final String value, final Location location) throws XMLStreamException { final String trimmed = value == null ? null : value.trim(); ModelNode node; if (trimmed != null ) { if (isAllowExpression()) { node = ParseUtils.parsePossibleExpressio...
public ModelNode parse(final String value, final Location location) throws XMLStreamException { final String trimmed = value == null ? null : value.trim(); ModelNode node; if (trimmed != null ) { if (isAllowExpression()) { node = ParseUtils.parsePossibleExpressio...
public void testSerialization() throws Exception { final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ObjectOutputStream oos = new ObjectOutputStream(out); oos.writeObject(CSVFormat.DEFAULT); oos.flush(); oos.close(); final ObjectInputStream in = n...
public void testSerialization() throws Exception { final ByteArrayOutputStream out = new ByteArrayOutputStream(); final ObjectOutputStream oos = new ObjectOutputStream(out); oos.writeObject(CSVFormat.DEFAULT); oos.flush(); oos.close(); final ObjectInputStream in = n...
protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_...
protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_...
public void open(Map stormConf, TopologyContext context, SpoutOutputCollector collector) { _process = new ShellProcess(_command); _collector = collector; try { Number subpid = _process.launch(stormConf, context); LOG.info("Launched subprocess wit...
public void open(Map stormConf, TopologyContext context, SpoutOutputCollector collector) { _process = new ShellProcess(_command); _collector = collector; try { Number subpid = _process.launch(stormConf, context); LOG.info("Launched subprocess wit...
private static void reflectionAppend(Object object, Class<?> clazz, HashCodeBuilder builder, boolean useTransients, String[] excludeFields) { if (isRegistered(object)) { return; } try { register(object); Field[] fields = clazz.getDeclaredFields...
private static void reflectionAppend(Object object, Class<?> clazz, HashCodeBuilder builder, boolean useTransients, String[] excludeFields) { if (isRegistered(object)) { return; } try { register(object); Field[] fields = clazz.getDeclaredFields...
public static boolean matches(byte[] buffer, int length) { // do we have enough of the header? if (length < 32) { return false; } // this is the best test if (length >= DumpArchiveConstants.TP_SIZE) { return DumpArchiveUtil.verify(buffer); } ...
public static boolean matches(byte[] buffer, int length) { // do we have enough of the header? if (length < 32) { return false; } // this is the best test if (length >= DumpArchiveConstants.TP_SIZE) { return DumpArchiveUtil.verify(buffer); } ...
public void testCumulativeDensityFunction() throws Exception { KolmogorovSmirnovDistribution dist; /* The code below is generated using the R-script located in * /src/test/R/KolmogorovSmirnovDistributionTestCases.R */ /* R version 2.11.1 (2010-05-...
public void testCumulativeDensityFunction() { KolmogorovSmirnovDistribution dist; /* The code below is generated using the R-script located in * /src/test/R/KolmogorovSmirnovDistributionTestCases.R */ /* R version 2.11.1 (2010-05-31) */ ...
public Object processInvocation(final InterceptorContext context) throws Exception { return viewToCreate.getValue().createInstance().createProxy(); } }; }
public Object processInvocation(final InterceptorContext context) throws Exception { return viewToCreate.getValue().createInstance().getInstance(); } }; }
private Object readResolve() throws ObjectStreamException { ServiceController<ComponentView> view = (ServiceController<ComponentView>) CurrentServiceContainer.getServiceContainer().getRequiredService(ServiceName.parse(viewName)); return view.getValue().createInstance(Collections.<Object, Object>sing...
private Object readResolve() throws ObjectStreamException { ServiceController<ComponentView> view = (ServiceController<ComponentView>) CurrentServiceContainer.getServiceContainer().getRequiredService(ServiceName.parse(viewName)); return view.getValue().createInstance(Collections.<Object, Object>sing...
public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateful()) { return new StatefulSessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescriptor); } else { return new SessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescripto...
public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor) { if (ejbDescriptor.isStateful()) { return new StatefulSessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescriptor); } else { return new SessionObjectReferenceImpl((EjbDescriptorImpl<?>) ejbDescripto...
protected void commitIfNecessary(Session session, Message message) throws JMSException { // Commit session or acknowledge message. if (session.getTransacted()) { // Commit necessary - but avoid commit call within a JTA transaction. if (isSessionLocallyTransacted(session)) { // Transacted session created ...
protected void commitIfNecessary(Session session, Message message) throws JMSException { // Commit session or acknowledge message. if (session.getTransacted()) { // Commit necessary - but avoid commit call within a JTA transaction. if (isSessionLocallyTransacted(session)) { // Transacted session created ...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ServiceTarget serviceTarget = context.getService...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final ServiceTarget serviceTarget = context.getService...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { HttpManagementAddHandler.populateHostControllerInfo(hostControllerInfo, context, model); HttpManagementAddHandler.installHttpManagementServices(context.getRunningMode(), c...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { HttpManagementAddHandler.populateHostControllerInfo(hostControllerInfo, context, model); HttpManagementAddHandler.installHttpManagementServices(context.getRunningMode(), c...
protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedExce...
protected void revertUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode valueToRestore, final ModelNode valueToRevert, final Void handback) throws OperationFailedExce...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 1); subsystem.registerXMLElementWriter(Messaging12SubsystemParser.getInstance()); boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); ...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 2); subsystem.registerXMLElementWriter(Messaging12SubsystemParser.getInstance()); boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); ...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final Module module = context.getAttachme...
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnitContext context) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment.getVirtualFileAttachment(context); final Module module = context.getAttachme...
public void run() { try { Thread.sleep(3000); } catch (InterruptedException e) { } while (!shutdown.get()) { log.debug("Attempting reconnection to master..."); ...
public void run() { try { Thread.sleep(3000); } catch (InterruptedException e) { } while (!shutdown.get()) { log.debug("Attempting reconnection to master..."); ...
public Boolean run() { // this needs a better name String val = System.getProperty("org.jboss.as.writeconsole"); return val != null && "true".equals(val); } }); String line = null; try { ...
public Boolean run() { // this needs a better name String val = System.getProperty("org.jboss.as.writeconsole"); return val == null || !"false".equals(val); } }); String line = null; try { ...
private void initCommands() { cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn"); cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls"); cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command"); cmdRegistry.registerHandler(new ConnectHa...
private void initCommands() { cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn"); cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls"); cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command"); cmdRegistry.registerHandler(new ConnectHa...
private void writeServers(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException { writer.writeStartElement(Element.SERVERS.getLocalName()); for (Property prop : modelNode.asPropertyList()) { final ModelNode server = prop.getValue(); writ...
private void writeServers(final XMLExtendedStreamWriter writer, final ModelNode modelNode) throws XMLStreamException { writer.writeStartElement(Element.SERVERS.getLocalName()); for (Property prop : modelNode.asPropertyList()) { final ModelNode server = prop.getValue(); writ...
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVec...
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVec...
package org.springframework.web.servlet.resource; /** * Support classes for serving static resources. */ package org.springframework.web.servlet.config;
package org.springframework.web.servlet.resource; /** * Support classes for serving static resources. */ package org.springframework.web.servlet.resource;
public static String[][] parse(String s) throws IOException { if (s == null) { throw new IllegalArgumentException("Null argument not allowed."); } String[][] result = (new CSVParser(new StringReader(s))).getAllValues(); if (result == null) { // since CSVFormat...
public static String[][] parse(String s) throws IOException { if (s == null) { throw new IllegalArgumentException("Null argument not allowed."); } String[][] result = (new CSVParser(new StringReader(s))).getRecords(); if (result == null) { // since CSVFormat i...
public void doOneRandom() throws Exception { int nLines = r.nextInt(4) + 1; int nCol = r.nextInt(3) + 1; // nLines=1;nCol=2; String[][] lines = new String[nLines][]; for (int i = 0; i < nLines; i++) { String[] line = new String[nCol]; lines[i] = line; ...
public void doOneRandom() throws Exception { int nLines = r.nextInt(4) + 1; int nCol = r.nextInt(3) + 1; // nLines=1;nCol=2; String[][] lines = new String[nLines][]; for (int i = 0; i < nLines; i++) { String[] line = new String[nCol]; lines[i] = line; ...
protected void doBegin(Object transaction, TransactionDefinition definition) { HibernateTransactionObject txObject = (HibernateTransactionObject) transaction; if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) { throw new IllegalTransactionStateException( ...
protected void doBegin(Object transaction, TransactionDefinition definition) { HibernateTransactionObject txObject = (HibernateTransactionObject) transaction; if (txObject.hasConnectionHolder() && !txObject.getConnectionHolder().isSynchronizedWithTransaction()) { throw new IllegalTransactionStateException( ...
public void testExtendedResourceInjection() { DefaultListableBeanFactory bf = new DefaultListableBeanFactory(); CommonAnnotationBeanPostProcessor bpp = new CommonAnnotationBeanPostProcessor(); bpp.setBeanFactory(bf); bf.addBeanPostProcessor(bpp); bf.registerResolvableDependency(BeanFactory.class, bf); Pro...
public void testExtendedResourceInjection() { DefaultListableBeanFactory bf = new DefaultListableBeanFactory(); CommonAnnotationBeanPostProcessor bpp = new CommonAnnotationBeanPostProcessor(); bpp.setBeanFactory(bf); bf.addBeanPostProcessor(bpp); bf.registerResolvableDependency(BeanFactory.class, bf); Pro...
private void testLogGamma(double expected, double x) { double actual = Gamma.logGamma(x, 10e-5, Integer.MAX_VALUE); TestUtils.assertEquals(expected, actual, 10e-5); }
private void testLogGamma(double expected, double x) { double actual = Gamma.logGamma(x); TestUtils.assertEquals(expected, actual, 10e-5); }
public void testIncreasingTolerance() throws DerivativeException, IntegratorException { int previousCalls = Integer.MAX_VALUE; for (int i = -12; i < -2; ++i) { TestProblem1 pb = new TestProblem1(); double minStep = 0; double maxStep = pb.getFinalTime() - pb.getInitialTime(); doubl...
public void testIncreasingTolerance() throws DerivativeException, IntegratorException { int previousCalls = Integer.MAX_VALUE; for (int i = -12; i < -2; ++i) { TestProblem1 pb = new TestProblem1(); double minStep = 0; double maxStep = pb.getFinalTime() - pb.getInitialTime(); doubl...
public void testTypesSatisfyVariables() throws SecurityException, NoSuchFieldException, NoSuchMethodException { final Map<TypeVariable<?>, Type> typeVarAssigns = new HashMap<TypeVariable<?>, Type>(); final Integer max = TypeUtilsTest.stub(); typeVarAssigns.put(getClass().getMetho...
public void testTypesSatisfyVariables() throws SecurityException, NoSuchFieldException, NoSuchMethodException { final Map<TypeVariable<?>, Type> typeVarAssigns = new HashMap<TypeVariable<?>, Type>(); final Integer max = TypeUtilsTest.<Integer> stub(); typeVarAssigns.put(getClass(...
package org.wildfly.clustering.ejb; /* * JBoss, Home of Professional Open Source. * Copyright 2014, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can red...
package org.wildfly.clustering.ejb; /* * JBoss, Home of Professional Open Source. * Copyright 2014, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can red...
private static <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) { final ServiceName name = dependency.getName(); final Injector<T> injector = dependency.getInjector(); if (injector != null) { builder.addDependency(name, dependency.getType(), injector); ...
private static <T> void addDependency(ServiceBuilder<?> builder, Dependency<T> dependency) { final ServiceName name = dependency.getName(); final Injector<T> injector = dependency.getInjector(); if (injector != null) { builder.addDependency(name, dependency.getType(), injector); ...
package org.wildfly.clustering.web; /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can red...
package org.wildfly.clustering.web; /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can red...
protected boolean requiresInterceptors(final Method method, final ComponentConfiguration componentConfiguration) { return Modifier.isPublic(method.getModifiers()) && !Modifier.isFinal(method.getModifiers()) && componentConfiguration.getComponentDescription().isIntercepted(); }
protected boolean requiresInterceptors(final Method method, final ComponentConfiguration componentConfiguration) { return Modifier.isPublic(method.getModifiers()) && componentConfiguration.getComponentDescription().isIntercepted(); }
public void run() { final SessionID sessionID; try { try { sessionID = statefulSessionComponent.createSessionRemote(); } catch (Throwable t) { EjbLogger.ROOT_LOGGER.exceptionGeneratingSessionId(t, statefulSessionComp...
public void run() { final SessionID sessionID; try { try { sessionID = statefulSessionComponent.createSession(); } catch (Throwable t) { EjbLogger.ROOT_LOGGER.exceptionGeneratingSessionId(t, statefulSessionComponent....
public void add(VirtualFile file, InputStream is) throws Exception { String name = "JBOSS_HOME" + file.getPhysicalFile().getAbsolutePath().substring(this.jbossHome.length()); this.add(is, name); }
public void add(VirtualFile file, InputStream is) throws Exception { String name = "JBOSS_HOME" + file.getPathName().substring(this.jbossHome.length()); this.add(is, name); }
private static String checkURL(String server, boolean shouldFail, String path) throws Exception { String address = CLITestSuite.hostAddresses.get(getServerHost(server)); Integer portOffset = CLITestSuite.portOffsets.get(server); URL url = new URL("http", address, 8080 + portOffset, path); ...
private static String checkURL(String server, boolean shouldFail, String path) throws Exception { String address = CLITestSuite.hostAddresses.get(getServerHost(server)); Integer portOffset = CLITestSuite.portOffsets.get(server); URL url = new URL("http", address, 8080 + portOffset, path); ...
protected String getSubsystemXml() throws IOException { return readResource("ws-subsystem20.xml"); //for default test }
protected String getSubsystemXml() throws IOException { return readResource("ws-subsystem12.xml"); //for default test }
public MediaType getContentType() { String value = getFirst(CONTENT_TYPE); return (value != null ? MediaType.parseMediaType(value) : null); }
public MediaType getContentType() { String value = getFirst(CONTENT_TYPE); return (StringUtils.hasLength(value) ? MediaType.parseMediaType(value) : null); }
public Object processInvocation(final InterceptorContext context) throws Exception { final StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class); final StatefulSessionComponentInstance instance = getComponentInstance(context); final OwnableReentrantLock ...
public Object processInvocation(final InterceptorContext context) throws Exception { final StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class); final StatefulSessionComponentInstance instance = getComponentInstance(context); final OwnableReentrantLock ...
public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome must exist"); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist"); } }
public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist"); } }
private void launchCommunicationHandler() { this.serverCommunicationHandler = ServerCommunicationHandlerFactory.getInstance().getProcessManagerSlave(environment, messageHandler); Thread t = new Thread(this.serverCommunicationHandler.getController(), "Server Process"); t.start(); }
private void launchCommunicationHandler() { this.serverCommunicationHandler = ServerCommunicationHandlerFactory.getInstance().getServerCommunicationHandler(environment, messageHandler); Thread t = new Thread(this.serverCommunicationHandler.getController(), "Server Process"); t.start(); }...
public static WebArchive deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(EjbLocalRefInjectionTestCase.class, EjbLocalRefInjectionServlet.class, NamedSLSB.class, SimpleSLSB.class, Hello.clas...
public static WebArchive deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(EjbLocalRefInjectionTestCase.class, EjbLocalRefInjectionServlet.class, NamedSLSB.class, SimpleSLSB.class, Hello.clas...
public static WebArchive deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(EnvEntryInjectionTestCase.class, EnvEntryInjectionServlet.class); war.addAsWebResource(getWebXml(),"web.xml"...
public static WebArchive deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "war-example.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(EnvEntryInjectionTestCase.class, EnvEntryInjectionServlet.class); war.addAsWebInfResource(getWebXml(),"web.x...
public static Archive<?> deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "multiple-bindings-superclass.war"); war.addAsWebResource(getWebXml(),"web.xml"); war.addPackage(ResourceRefTestCase.class.getPackage()); return war; }
public static Archive<?> deployment() { WebArchive war = ShrinkWrap.create(WebArchive.class, "multiple-bindings-superclass.war"); war.addAsWebInfResource(getWebXml(),"web.xml"); war.addPackage(ResourceRefTestCase.class.getPackage()); return war; }
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsAtomProviderTestCase.class.getPackage()); war.addAsWebResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsAtomProviderTestCase.class.getPackage()); war.addAsWebInfResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsJacksonProviderTestCase.class.getPackage()); war.addAsWebResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsJacksonProviderTestCase.class.getPackage()); war.addAsWebInfResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(JaxbProviderTestCase.class, JaxbModel.class, JaxbResource.class); war.addAsWebResource(WebXml.get("<servlet-mapping...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(JaxbProviderTestCase.class, JaxbModel.class, JaxbResource.class); war.addAsWebInfResource(WebXml.get("<servlet-mapp...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsMultipartProviderTestCase.class.getPackage()); war.addAsWebResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addPackage(JaxrsMultipartProviderTestCase.class.getPackage()); war.addAsWebInfResource(WebXml.get("<servlet-mapping>\n" + ...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsapp.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(ApplicationIntegrationTestCase.class, HelloWorldResource.class,HelloWorldApplication.class); war.addAsWebResource(We...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsapp.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(ApplicationIntegrationTestCase.class, HelloWorldResource.class,HelloWorldApplication.class); war.addAsWebInfResource...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsapp.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(ApplicationPathOverrideIntegrationTestCase.class, HelloWorldResource.class,HelloWorldPathApplication.class); war.add...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsapp.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(ApplicationPathOverrideIntegrationTestCase.class, HelloWorldResource.class,HelloWorldPathApplication.class); war.add...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(NoApplicationIntegrationTestCase.class, HelloWorldResource.class); war.addAsWebResource(WebXml.get("<servlet-mappin...
public static Archive<?> deploy() { WebArchive war = ShrinkWrap.create(WebArchive.class,"jaxrsnoap.war"); war.addPackage(HttpRequest.class.getPackage()); war.addClasses(NoApplicationIntegrationTestCase.class, HelloWorldResource.class); war.addAsWebInfResource(WebXml.get("<servlet-map...