buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public ManagedReference createViewInstance(final ComponentView componentView, final Map<Object, Object> contextData) throws Exception { SessionID sessionID = (SessionID) contextData.get(SessionID.class); final StatefulEJBLocator statefulEJBLocator; final StatefulSessionComponent statefulSess...
public ManagedReference createViewInstance(final ComponentView componentView, final Map<Object, Object> contextData) throws Exception { SessionID sessionID = (SessionID) contextData.get(SessionID.class); final StatefulEJBLocator statefulEJBLocator; final StatefulSessionComponent statefulSess...
public EJBObject getEJBObject(final InterceptorContext ctx) throws IllegalStateException { if (getEjbObjectViewServiceName() == null) { throw MESSAGES.beanComponentMissingEjbObject(getComponentName(), "EJBObject"); } final ServiceController<?> serviceController = currentServiceCo...
public EJBObject getEJBObject(final InterceptorContext ctx) throws IllegalStateException { if (getEjbObjectViewServiceName() == null) { throw MESSAGES.beanComponentMissingEjbObject(getComponentName(), "EJBObject"); } final ServiceController<?> serviceController = currentServiceCo...
public Cancellable execute(NewOperationContext context, ModelNode operation, ResultHandler resultHandler) { context.getSubModel().get(THREAD_POOL).set(operation.require(REQUEST_PROPERTIES).require(THREAD_POOL)); // initialize the connectors context.getSubModel().get(CONNECTOR).setEmptyObjec...
public Cancellable execute(NewOperationContext context, ModelNode operation, ResultHandler resultHandler) { context.getSubModel().get(THREAD_POOL).set(operation.require(THREAD_POOL)); // initialize the connectors context.getSubModel().get(CONNECTOR).setEmptyObject(); // Compensatin...
protected TestModelControllerService(final Extension mainExtension, final ControllerInitializer controllerInitializer, final AdditionalInitialization additionalInit, RunningModeControl runningModeControl, final ExtensionRegistry extensionRegistry, final StringConfigurationPersister persister...
protected TestModelControllerService(final Extension mainExtension, final ControllerInitializer controllerInitializer, final AdditionalInitialization additionalInit, RunningModeControl runningModeControl, final ExtensionRegistry extensionRegistry, final StringConfigurationPersister persister...
String CONTAINER_CONFIG = CONFIGURATION; /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 ca...
String CONTAINER_CONFIG = CONFIGURATION; /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 ca...
private RequestMappingInfo createFromRequestMapping(RequestMapping annotation) { return new RequestMappingInfo( new PatternsRequestCondition(annotation.value(), getUrlPathHelper(), getPathMatcher()), new RequestMethodsRequestCondition(annotation.method()), new ParamsRequestCondition(annotation.params()),...
private RequestMappingInfo createFromRequestMapping(RequestMapping annotation) { return new RequestMappingInfo( new PatternsRequestCondition(annotation.value(), getUrlPathHelper(), getPathMatcher()), new RequestMethodsRequestCondition(annotation.method()), new ParamsRequestCondition(annotation.params()),...
public void testSolve() { RealMatrix m = MatrixUtils.createRealMatrix(new double[][] { { 91, 5, 29, 32, 40, 14 }, { 5, 34, -1, 0, 2, -1 }, { 29, -1, 12, 9, 21, 8 }, { 32, 0, 9, 14, 9, 0 }, { 40, 2, 21, 9, 51, 19 }, ...
public void testSolve() { RealMatrix m = MatrixUtils.createRealMatrix(new double[][] { { 91, 5, 29, 32, 40, 14 }, { 5, 34, -1, 0, 2, -1 }, { 29, -1, 12, 9, 21, 8 }, { 32, 0, 9, 14, 9, 0 }, { 40, 2, 21, 9, 51, 19 }, ...
boolean implementsInterface(Class<?> intf); /* * Copyright 2002-2007 the original author or authors. * * 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/lic...
boolean implementsInterface(Class<?> intf); /* * Copyright 2002-2007 the original author or authors. * * 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/lic...
public boolean matches(Method method, Class targetClass) { return true; } }
public boolean matches(Method method, Class<?> targetClass) { return true; } }
public void initialize(final ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration subsystemRegistr...
public void initialize(final ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration subsystemRegistr...
public void initialize(final ExtensionContext context) { ROOT_LOGGER.debugf("Initializing Connector Extension"); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MA...
public void initialize(final ExtensionContext context) { ROOT_LOGGER.debugf("Initializing Connector Extension"); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MA...
public void initialize(final ExtensionContext context) { SUBSYSTEM_RA_LOGGER.debugf("Initializing ResourceAdapters Extension"); // Register the remoting subsystem final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, ...
public void initialize(final ExtensionContext context) { SUBSYSTEM_RA_LOGGER.debugf("Initializing ResourceAdapters Extension"); // Register the remoting subsystem final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, ...
public void registerOperationHandler(OperationDefinition definition, OperationStepHandler handler, boolean inherited) { registerOperationHandler(definition.getName(), handler, definition.getDescriptionProvider(), inherited, definition.getFlags()); }
public void registerOperationHandler(OperationDefinition definition, OperationStepHandler handler, boolean inherited) { registerOperationHandler(definition.getName(), handler, definition.getDescriptionProvider(), inherited, definition.getEntryType(), definition.getFlags()); }
protected void initModel(Resource rootResource, ManagementResourceRegistration registration) { registration.registerOperationHandler(READ_RESOURCE_OPERATION, GlobalOperationHandlers.READ_RESOURCE, CommonProviders.READ_RESOURCE_PROVIDER, true, EnumSet.of(Flag.RUNTIME_ONLY)); registration.registerOper...
protected void initModel(Resource rootResource, ManagementResourceRegistration registration) { registration.registerOperationHandler(READ_RESOURCE_OPERATION, GlobalOperationHandlers.READ_RESOURCE, CommonProviders.READ_RESOURCE_PROVIDER, true, EnumSet.of(Flag.RUNTIME_ONLY)); registration.registerOper...
public void initialize(ExtensionContext context) { ROOT_LOGGER.debug("Initializing Deployment Scanner Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(CommonAttributes.DEPLOYMENT_SCANNER, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAG...
public void initialize(ExtensionContext context) { ROOT_LOGGER.debug("Initializing Deployment Scanner Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(CommonAttributes.DEPLOYMENT_SCANNER, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAG...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); // Register the root subsystem resource. final Mana...
public void initialize(ExtensionContext context) { final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_...
public void initialize(ExtensionContext context) { final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration subsystemRegistration =...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration subsystemRegistration =...
public void initialize(ExtensionContext context) { SubsystemRegistration subsystemRegistration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); ManagementResourceRegistration root = subsystemRegist...
public void initialize(ExtensionContext context) { SubsystemRegistration subsystemRegistration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); ManagementResourceRegistration root = subsystemRegist...
public void initialize(ExtensionContext context) { final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final boolean registerRuntimeOnly = context.isRuntimeOnly...
public void initialize(ExtensionContext context) { final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final boolean registerRuntimeOnly = context.isRuntimeOnly...
public void initialize(ExtensionContext context) { SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration nodeRegistration = registr...
public void initialize(ExtensionContext context) { SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration nodeRegistration = registr...
public void initialize(final ExtensionContext context) { JSFLogger.ROOT_LOGGER.debug("Activating JSF(Mojarra) Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICR...
public void initialize(final ExtensionContext context) { JSFLogger.ROOT_LOGGER.debug("Activating JSF(Mojarra) Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICR...
public void initialize(final ExtensionContext context) { LogContext.setLogContextSelector(CONTEXT_SELECTOR); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); ...
public void initialize(final ExtensionContext context) { LogContext.setLogContextSelector(CONTEXT_SELECTOR); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); ...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); subsystem.registerXMLElement...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); subsystem.registerXMLElement...
public void registerOperations(ManagementResourceRegistration registration) { super.registerOperations(registration); registration.registerOperationHandler(DESCRIBE, GenericSubsystemDescribeHandler.INSTANCE, GenericSubsystemDescribeHandler.INSTANCE, false, OperationEntry.EntryType.PRIVATE); ...
public void registerOperations(ManagementResourceRegistration registration) { super.registerOperations(registration); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); if (runtimeOnly) { registerRuntimeOp...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyst...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyst...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyste...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyste...
public void initialize(ExtensionContext context) { // Register the remoting subsystem final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); registration....
public void initialize(ExtensionContext context) { // Register the remoting subsystem final SubsystemRegistration registration = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); registration....
public void initialize(ExtensionContext context) { final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_...
public void initialize(ExtensionContext context) { final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { resourceRegistration.registerReadWriteAttribute(TEST_ATTRIBUTE, null, new BasicAttributeWriteHandler(TEST_ATTRIBUTE)); } }); reg.registerOperationHandler(DESCRIBE, GenericSubsyst...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { resourceRegistration.registerReadWriteAttribute(TEST_ATTRIBUTE, null, new BasicAttributeWriteHandler(TEST_ATTRIBUTE)); } }); reg.registerOperationHandler(GenericSubsystemDescribe...
public void initialize(ExtensionContext context) { ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem =...
public void initialize(ExtensionContext context) { ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegistration subsystem =...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyst...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSION); final ManagementResourceRegistration registration = subsyst...
public void initialize(final ExtensionContext context) { WeldLogger.ROOT_LOGGER.debug("Activating Weld Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSI...
public void initialize(final ExtensionContext context) { WeldLogger.ROOT_LOGGER.debug("Activating Weld Extension"); final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION, MANAGEMENT_API_MINOR_VERSION, MANAGEMENT_API_MICRO_VERSI...
public void registerOperations(ManagementResourceRegistration registration) { super.registerOperations(registration); registration.registerOperationHandler(DESCRIBE, GenericSubsystemDescribeHandler.INSTANCE, GenericSubsystemDescribeHandler.INSTANCE, false, OperationEntry.EntryType.PRIVATE); }
public void registerOperations(ManagementResourceRegistration registration) { super.registerOperations(registration); registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE); }
public static File getFile(final File directory, final String... names) { if (directory == null) { throw new NullPointerException("directorydirectory must not be null"); } if (names == null) { throw new NullPointerException("names must not be null"); } ...
public static File getFile(final File directory, final String... names) { if (directory == null) { throw new NullPointerException("directory must not be null"); } if (names == null) { throw new NullPointerException("names must not be null"); } File fil...
public ModelNode getNoTextDescription(boolean forOperation) { final ModelNode result = new ModelNode(); result.get(ModelDescriptionConstants.TYPE).set(type); result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder result.get(ModelDescriptionConstants.EXPRESSIONS_ALLOWED).se...
public ModelNode getNoTextDescription(boolean forOperation) { final ModelNode result = new ModelNode(); result.get(ModelDescriptionConstants.TYPE).set(type); result.get(ModelDescriptionConstants.DESCRIPTION); // placeholder result.get(ModelDescriptionConstants.EXPRESSIONS_ALLOWED).se...
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("namespaces")) .setReplyParameters(NAMESPACE, URI) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("namespaces")) .setParameters(NAMESPACE, URI) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("namespaces")) .setReplyParameters(NAMESPACE) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("namespaces")) .setParameters(NAMESPACE) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("schema-locations")) .setReplyParameters(SCHEMA_LOCATION, URI) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("schema-locations")) .setParameters(SCHEMA_LOCATION, URI) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("schema-locations")) .setReplyParameters(URI) .build();
public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(OPERATION_NAME, ControllerResolver.getResolver("schema-locations")) .setParameters(URI) .build();
public void registerOperations(ManagementResourceRegistration hostRegistration) { super.registerOperations(hostRegistration); hostRegistration.registerOperationHandler(NamespaceAddHandler.DEFINITION, NamespaceAddHandler.INSTANCE); hostRegistration.registerOperationHandler(NamespaceRemoveHand...
public void registerOperations(ManagementResourceRegistration hostRegistration) { super.registerOperations(hostRegistration); hostRegistration.registerOperationHandler(NamespaceAddHandler.DEFINITION, NamespaceAddHandler.INSTANCE); hostRegistration.registerOperationHandler(NamespaceRemoveHand...
public DeflateCompressorInputStream(InputStream inputStream, DeflateParameters parameters) { in = new InflaterInputStream(inputStream, new Inflater(!parameters.isZlibHeaderPresent())); }
public DeflateCompressorInputStream(InputStream inputStream, DeflateParameters parameters) { in = new InflaterInputStream(inputStream, new Inflater(!parameters.withZlibHeader())); }
public DeflateCompressorOutputStream(OutputStream outputStream, DeflateParameters parameters) throws IOException { this.out = new DeflaterOutputStream(outputStream, new Deflater(parameters.getCompressionLevel(), !parameters.isZlibHeaderPresent())); }
public DeflateCompressorOutputStream(OutputStream outputStream, DeflateParameters parameters) throws IOException { this.out = new DeflaterOutputStream(outputStream, new Deflater(parameters.getCompressionLevel(), !parameters.withZlibHeader())); }
public ObjectTypeValidator(final boolean nullable, final AttributeDefinition... attributes) { super(nullable, false, false, ModelType.OBJECT, findModelTypes(attributes)); allowedValues = new HashMap<String, AttributeDefinition>(attributes.length); nodeValues = new ArrayList<ModelNode>(attrib...
public ObjectTypeValidator(final boolean nullable, final AttributeDefinition... attributes) { super(nullable, true, false, ModelType.OBJECT, findModelTypes(attributes)); allowedValues = new HashMap<String, AttributeDefinition>(attributes.length); nodeValues = new ArrayList<ModelNode>(attribu...
protected ModelNode fromNonDMRString(String value) throws CommandFormatException { callback.reset(); ParserUtil.parse(value, callback, initialState); final List<ParsedOperationRequestHeader> headers = callback.getHeaders(); if(headers.isEmpty()) { ...
protected ModelNode fromNonDMRString(String value) throws CommandFormatException { callback.reset(); ParserUtil.parse(value, callback, initialState); final List<ParsedOperationRequestHeader> headers = callback.getHeaders(); if(headers.isEmpty()) { ...
public void character(ParsingContext ctx) throws CommandFormatException { if(delegate != null) { delegate.character(ctx); return; } //System.out.println(ctx.getState().getId() + " '" + ctx.getCharacter() + "'"); ...
public void character(ParsingContext ctx) throws CommandFormatException { if(delegate != null) { delegate.character(ctx); return; } //System.out.println(ctx.getState().getId() + " '" + ctx.getCharacter() + "'"); ...
public void testCustomContentNegotiationManager() throws Exception { loadBeanDefinitions("mvc-config-content-negotiation-manager.xml", 14); RequestMappingHandlerMapping mapping = appContext.getBean(RequestMappingHandlerMapping.class); ContentNegotiationManager manager = mapping.getContentNegotiationManager(); ...
public void testCustomContentNegotiationManager() throws Exception { loadBeanDefinitions("mvc-config-content-negotiation-manager.xml", 12); RequestMappingHandlerMapping mapping = appContext.getBean(RequestMappingHandlerMapping.class); ContentNegotiationManager manager = mapping.getContentNegotiationManager(); ...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops //Install...
protected void boot(final BootContext context) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context.getServiceTarget(); try { super.boot(hostControllerConfigurationPersister.load()); // This parses the host.xml and invokes all ops //Install...
protected Object createFlights() { FlightType flight = new FlightType(); flight.setNumber(42L); flights = new Flights(); flights.getFlight().configureBinding(flight); return flights; }
protected Object createFlights() { FlightType flight = new FlightType(); flight.setNumber(42L); flights = new Flights(); flights.getFlight().add(flight); return flights; }
private static final AttachmentKey<DataSources> ATTACHMENT_KEY = AttachmentKey.create(DataSources.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listin...
private static final AttachmentKey<DataSources> ATTACHMENT_KEY = AttachmentKey.create(DataSources.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listin...
private static final AttachmentKey<ResourceAdapters> ATTACHMENT_KEY = AttachmentKey.create(ResourceAdapters.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a f...
private static final AttachmentKey<ResourceAdapters> ATTACHMENT_KEY = AttachmentKey.create(ResourceAdapters.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a f...
static final AttachmentKey<ServiceActivatorMarker> ATTACHMENT_KEY = AttachmentKey.create(ServiceActivatorMarker.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for...
static final AttachmentKey<ServiceActivatorMarker> ATTACHMENT_KEY = AttachmentKey.create(ServiceActivatorMarker.class); /* * JBoss, Home of Professional Open Source. * Copyright 2010, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for...
public interface DeploymentPhaseContext extends Attachable { /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 f...
public interface DeploymentPhaseContext extends Attachable { /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 f...
public interface CommonAttributes { /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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...
public interface CommonAttributes { /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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...
public SingularValueDecompositionImpl(RealMatrix matrix) throws InvalidMatrixException { m = matrix.getRowDimension(); n = matrix.getColumnDimension(); cachedU = null; cachedS = null; cachedV = null; cachedVt = null; // transform the matrix to bi...
public SingularValueDecompositionImpl(RealMatrix matrix) throws InvalidMatrixException { m = matrix.getRowDimension(); n = matrix.getColumnDimension(); cachedU = null; cachedS = null; cachedV = null; cachedVt = null; // transform the matrix to bi...
interface SubjectSupplemental { /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 redistr...
interface SubjectSupplemental { /* * JBoss, Home of Professional Open Source. * Copyright 2012, 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 redistr...
private void processRequest(final HttpExchange http) throws IOException { final URI request = http.getRequestURI(); final String requestMethod = http.getRequestMethod(); boolean isGet = GET.equals(requestMethod); if (!isGet && !POST.equals(requestMethod)) { http.sendResp...
private void processRequest(final HttpExchange http) throws IOException { final URI request = http.getRequestURI(); final String requestMethod = http.getRequestMethod(); boolean isGet = GET.equals(requestMethod); if (!isGet && !POST.equals(requestMethod)) { http.sendResp...
private void checkManifest(Archive<?> archive, ModuleApplicationArchiveProcessor processor) { Node node = archive.get(MANIFEST); Assert.assertNotNull(node); Manifest mf = ManifestUtils.getOrCreateManifest(archive); Attributes attributes = mf.getMainAttributes(); String value...
private void checkManifest(Archive<?> archive, ModuleApplicationArchiveProcessor processor) { Node node = archive.get(MANIFEST); Assert.assertNotNull(node); Manifest mf = ManifestUtils.getOrCreateManifest(archive); Attributes attributes = mf.getMainAttributes(); String value...
public void run() { if (proc != null) { proc.destroy(); try { proc.waitFor(); } catch (InterruptedException e) { throw new RuntimeException(e); ...
public void run() { if (proc != null) { proc.destroy(); try { proc.waitFor(); } catch (InterruptedException e) { throw new RuntimeException(e); ...
protected abstract AbstractModelUpdate<E, ?> getCompensatingUpdate(E original); }
public abstract AbstractModelUpdate<E, ?> getCompensatingUpdate(E original); }
public LocalDomainControllerElement(final XMLExtendedStreamReader reader) throws XMLStreamException { super(); requireNoContent(reader); }
public LocalDomainControllerElement(final XMLExtendedStreamReader reader) throws XMLStreamException { super(); ParseUtils.requireNoContent(reader); }
public long elementHash() { return element.hashCode() & 0xFFFFFFFF; } }
private long elementHash() { return element.hashCode() & 0xFFFFFFFF; } }
public long elementHash() { return value.hashCode() & 0xFFFFFFFFL; } }
private long elementHash() { return value.hashCode() & 0xFFFFFFFFL; } }
public boolean transform(ModelNode node, PathAddress address, TransformationContext context) throws OperationFailedException { node.get("othertest").set(true); return true; } }); // Discard all build...
public boolean transform(ModelNode node, PathAddress address, TransformationContext context) throws OperationFailedException { node.get("othertest").set(true); return true; } }); // Discard all build...
private Resource transformResource(final OperationContext context, Resource root) throws OperationFailedException { return transformers.transformResource(Transformers.Factory.getTransformationContext(transformers, context), root); }
private Resource transformResource(final OperationContext context, Resource root) throws OperationFailedException { return transformers.transformRootResource(context, root); }
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { // First lock the domain controller context.acquireControllerLock(); // Check with the controller lock held if(domainController.isHostRegistered(regist...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { // First lock the domain controller context.acquireControllerLock(); // Check with the controller lock held if(domainController.isHostRegistered(regist...
public void start() { Console console = System.console(); if (console == null) { System.err.println("No console."); System.exit(1); } Scanner in = new Scanner(System.in); while (true) { String commandStr = "Please enter a Digit:: 0: Sto...
public void start() { Console console = System.console(); if (console == null) { System.err.println("No console."); System.exit(1); } Scanner in = new Scanner(System.in); while (true) { String commandStr = "Please enter a Digit:: 0: Sto...
public interface UnivariateDifferentiableMatrixFunction /* * 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...
public interface UnivariateDifferentiableMatrixFunction /* * 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...
public boolean supports(MergedContextConfiguration mergedConfig) { return !ObjectUtils.isEmpty(mergedConfig.getLocations()); }
public boolean supports(MergedContextConfiguration mergedConfig) { return !ObjectUtils.isEmpty(mergedConfig.getLocations()) && ObjectUtils.isEmpty(mergedConfig.getClasses()); }
public void registerChildren(ManagementResourceRegistration resourceRegistration) { super.registerChildren(resourceRegistration); resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN)); resourceRegistration.registerSubModel(new Interfac...
public void registerChildren(ManagementResourceRegistration resourceRegistration) { super.registerChildren(resourceRegistration); resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN)); resourceRegistration.registerSubModel(new Interfac...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String dsNa...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> controllers) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String dsNa...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) { final ServiceRegistry registry = context.getServiceRegistry(true); final ModelNode address = operation.require(OP_ADDR); final String dsName = PathAddress.pathAddress(address).getLastElement().ge...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) { final ServiceRegistry registry = context.getServiceRegistry(true); final ModelNode address = operation.require(OP_ADDR); final String dsName = PathAddress.pathAddress(address).getLastElement().ge...
public void execute(final OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String dsName = PathAddress.pathAddress(address).getLastElement().getValue(); ...
public void execute(final OperationContext context, ModelNode operation) throws OperationFailedException { final ModelNode address = operation.require(OP_ADDR); final String dsName = PathAddress.pathAddress(address).getLastElement().getValue(); ...
public synchronized void execute(final OperationContext context, final ModelNode operation) { // Wait for services to reach rest state. // Additionally... // Temp workaround to MSC issue of geting STARTING_TO_STARTED notification for parent service before // getting the PROBLEM_TO_S...
public synchronized void execute(final OperationContext context, final ModelNode operation) { // Wait for services to reach rest state. // Additionally... // Temp workaround to MSC issue of geting STARTING_TO_STARTED notification for parent service before // getting the PROBLEM_TO_S...
public void testConstructor(){ ArgumentOutsideDomainException ex = new ArgumentOutsideDomainException(Math.PI, 10.0, 20.0); assertNull(ex.getCause()); assertNotNull(ex.getMessage()); assertTrue(ex.getMessage().indexOf("3.14") > 0); assertEquals(Math.PI, ex.getArgument(), 0); ...
public void testConstructor(){ ArgumentOutsideDomainException ex = new ArgumentOutsideDomainException(Math.PI, 10.0, 20.0); assertNull(ex.getCause()); assertNotNull(ex.getMessage()); assertTrue(ex.getMessage().indexOf("3.14") > 0); assertEquals(Math.PI, ex.getArgument()[0], 0...
public void shutdown() { _disruptor.shutdown(); _executor.shutdown(); }
public void shutdown() { _disruptor.shutdown(); _executor.shutdownNow(); }
package org.jboss.as.controller.access.management; /* * 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 softwa...
package org.jboss.as.controller.access.management; /* * 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 softwa...
package org.jboss.as.controller.access.management; /* * 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 softwa...
package org.jboss.as.controller.access.management; /* * 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 softwa...
import org.jboss.as.controller.access.management.AccessConstraintDefinition; /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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....
import org.jboss.as.controller.access.management.AccessConstraintDefinition; /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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....
public URI expand(Map<String, ?> uriVariables) { Assert.notNull(uriVariables, "'uriVariables' must not be null"); Object[] values = new String[this.variableNames.size()]; for (int i = 0; i < this.variableNames.size(); i++) { String name = this.variableNames.get(i); if (!uriVariables.containsKey(name)) { ...
public URI expand(Map<String, ?> uriVariables) { Assert.notNull(uriVariables, "'uriVariables' must not be null"); Object[] values = new Object[this.variableNames.size()]; for (int i = 0; i < this.variableNames.size(); i++) { String name = this.variableNames.get(i); if (!uriVariables.containsKey(name)) { ...
public Object call() throws Exception { Object result = getNextCallable().call(); if (this.asyncWebRequest.isAsyncCompleted()) { throw new StaleAsyncWebRequestException( "Async request no longer available due to a timed out or a (client) error"); } return result; }
public Object call() throws Exception { Object result = getNextCallable().call(); if (this.asyncWebRequest.isAsyncCompleted()) { throw new StaleAsyncWebRequestException( "Async request no longer available due to a timeout or a (client) error"); } return result; }
public AuditLogHandlerBootDisabledTestCase() { super(false); }
public AuditLogHandlerBootDisabledTestCase() { super(false, true); }
public AuditLogHandlerBootEnabledTestCase() { super(true); }
public AuditLogHandlerBootEnabledTestCase() { super(true, true); }
public ManagementRequestHandler<?, ?> resolveHandler(RequestHandlerChain handlers, ManagementRequestHeader header) { final byte operationId = header.getOperationId(); switch (operationId) { case DomainControllerProtocol.UNREGISTER_HOST_CONTROLLER_REQUEST: { handlers.regis...
public ManagementRequestHandler<?, ?> resolveHandler(RequestHandlerChain handlers, ManagementRequestHeader header) { final byte operationId = header.getOperationId(); switch (operationId) { case DomainControllerProtocol.UNREGISTER_HOST_CONTROLLER_REQUEST: { handlers.regis...
public boolean shouldRun(TimerImpl timer) { return !timer.isPersistent() || timerPersistence.getValue().shouldRun(timer); }
public boolean shouldRun(TimerImpl timer) { return !timer.isPersistent() || timerPersistence.getValue().shouldRun(timer, this.transactionManager); }
public UriComponents build(boolean encoded) { return new UriComponents(scheme, userInfo, host, port, pathBuilder.build(), queryParams, fragment, encoded); }
public UriComponents build(boolean encoded) { return new UriComponents(scheme, userInfo, host, port, pathBuilder.build(), queryParams, fragment, encoded, true); }
package org.jboss.as.test.integration.osgi.classloading.suba; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free so...
package org.jboss.as.test.integration.osgi.classloading.suba; /* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free so...
private void doTransform(PathAddress address, ModelNode modelOrOp, ModelNode operation, AbstractChainedContext context, RejectedAttributesLogContext rejectedAttributes) { Map<String, String> renames = new HashMap<String, String>(); Map<String, ModelNode> adds = new HashMap<String, ModelNode>(); ...
private void doTransform(PathAddress address, ModelNode modelOrOp, ModelNode operation, AbstractChainedContext context, RejectedAttributesLogContext rejectedAttributes) { Map<String, String> renames = new HashMap<String, String>(); Map<String, ModelNode> adds = new HashMap<String, ModelNode>(); ...
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(Collection<? extends E> coll) { if (coll == null) { throw new IllegalArgumentException("The collection must not be null"); } // handle decorators for (int i = 0; i < 1000; i++) { // counter to prevent ...
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(Collection<? extends E> coll) { if (coll == null) { throw new IllegalArgumentException("The collection must not be null"); } // handle decorators for (int i = 0; i < 1000; i++) { // counter to prevent ...
protected List<E> getList() { return (List<E>) collection; }
protected List<E> getList() { return (List<E>) decorated(); }
protected Queue<E> getQueue() { return (Queue<E>) collection; }
protected Queue<E> getQueue() { return (Queue<E>) decorated(); }
protected SortedSet<E> getSortedSet() { return (SortedSet<E>) collection; }
protected SortedSet<E> getSortedSet() { return (SortedSet<E>) decorated(); }
public static ModelNode getHistoryItemForOneOffPatch(ModelControllerClient client, String patchId) throws IOException { final ModelNode readOp = new ModelNode(); readOp.get(ModelDescriptionConstants.OP_ADDR).add("core-service", "patching"); readOp.get(ModelDescriptionConstants.OP...
public static ModelNode getHistoryItemForOneOffPatch(ModelControllerClient client, String patchId) throws IOException { final ModelNode readOp = new ModelNode(); readOp.get(ModelDescriptionConstants.OP_ADDR).add("core-service", "patching"); readOp.get(ModelDescriptionConstants.OP...
public void uri() throws InterruptedException, URISyntaxException { String result = template.getForObject(URI + "/uri/{query}", String.class, "ZŸrich"); assertEquals("Invalid request URI", "/uri/Z%FCrich", result); }
public void uri() throws InterruptedException, URISyntaxException { String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich"); assertEquals("Invalid request URI", "/uri/Z%FCrich", result); }
public void expandEncoded() throws Exception { UriTemplate template = new UriTemplate("http://example.com//hotel list/{hotel}"); URI result = template.expand("ZŸrich"); assertEquals("Invalid expanded template", new URI("http://example.com//hotel%20list/Z%FCrich"), result); }
public void expandEncoded() throws Exception { UriTemplate template = new UriTemplate("http://example.com//hotel list/{hotel}"); URI result = template.expand("Z\u00fcrich"); assertEquals("Invalid expanded template", new URI("http://example.com//hotel%20list/Z%FCrich"), result); }
public void encodeUri() throws UnsupportedEncodingException { assertEquals("Invalid encoded URI", "http://www.ietf.org/rfc/rfc3986.txt", UriUtils.encodeUri("http://www.ietf.org/rfc/rfc3986.txt", ENC)); assertEquals("Invalid encoded URI", "http://www.google.com/?q=z%FCrich", UriUtils.encodeUri("http://www.g...
public void encodeUri() throws UnsupportedEncodingException { assertEquals("Invalid encoded URI", "http://www.ietf.org/rfc/rfc3986.txt", UriUtils.encodeUri("http://www.ietf.org/rfc/rfc3986.txt", ENC)); assertEquals("Invalid encoded URI", "http://www.google.com/?q=z%FCrich", UriUtils.encodeUri("http://www.g...
@Message(id = NONE, value = "'%s' parameter type or length is incorrect") /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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. *...
@Message(id = NONE, value = "'%s' parameter type or length is incorrect") /* * JBoss, Home of Professional Open Source. * Copyright 2011, 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. *...
package org.jboss.as.demos.ejb3.archive; /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 ca...
package org.jboss.as.demos.ejb3.archive; /* * JBoss, Home of Professional Open Source. * Copyright 2010, 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 ca...
public void testSFSB() throws Exception { String state = "not in a good mood!"; localSfsb.setState(state); String storedState = localSfsb.getState(); Assert.assertEquals("Unexpected state returned from stateful session bean", SimpleInterceptor.class.getSimpleName() + "#" + state, sto...
public void testSFSB() throws Exception { String state = "not in a good mood!"; localSfsb.setState(state); String storedState = localSfsb.getState(); Assert.assertEquals("Unexpected state returned from stateful session bean", SimpleInterceptor.class.getName() + "#" + state, storedSta...
public void testSLSB() throws Exception { String message = "Zzzzzzzz.....!"; String echo = localBean.echo(message); String expectedEcho = SimpleInterceptor.class.getSimpleName() + "#" + SimpleStatelessSessionBean.class.getSimpleName() + "#" + "Echo " + message + " -- (1:Other, 2:Other, 3:Oth...
public void testSLSB() throws Exception { String message = "Zzzzzzzz.....!"; String echo = localBean.echo(message); String expectedEcho = SimpleInterceptor.class.getName() + "#" + SimpleStatelessSessionBean.class.getName() + "#" + "Echo " + message + " -- (1:Other, 2:Other, 3:Other)" ; ...