buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private static ExtensionContext initializeDomainRegistry(final ManagementResourceRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMa... | private static ExtensionContext initializeDomainRegistry(final ManagementResourceRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMa... |
public void writeContent(final XMLExtendedStreamWriter writer, final SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(EJB3SubsystemNamespace.EJB3_1_4.getUriString(), false);
writeElements(writer, context);
// write the subsystem end element
... | public void writeContent(final XMLExtendedStreamWriter writer, final SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(EJB3SubsystemNamespace.EJB3_1_5.getUriString(), false);
writeElements(writer, context);
// write the subsystem end element
... |
protected Collection getApplicationListeners() {
return this.applicationListeners;
}
} | protected Collection<ApplicationListener> getApplicationListeners() {
return this.applicationListeners;
}
} |
* public fields, a Map - depending on the concrete binding strategy.
*/
Object getTarget();
/**
* Return a model Map for the obtained state, exposing a BindingResult
* instance as '{@link #MODEL_KEY_PREFIX MODEL_KEY_PREFIX} + objectName'
* and the object itself as 'objectName'.
* <p>Note that the Map is ... | * public fields, a Map - depending on the concrete binding strategy.
*/
Object getTarget();
/**
* Return a model Map for the obtained state, exposing a BindingResult
* instance as '{@link #MODEL_KEY_PREFIX MODEL_KEY_PREFIX} + objectName'
* and the object itself as 'objectName'.
* <p>Note that the Map is ... |
private String styleArray(Object[] array) {
StringBuilder result = new StringBuilder(array.length * 8 + 16);
result.append(ARRAY + "<" + ClassUtils.getShortName(array.getClass().getComponentType()) + ">[");
for (int i = 0; i < array.length - 1; i++) {
result.append(style(array[i]));
result.append(',').appe... | private String styleArray(Object[] array) {
StringBuilder result = new StringBuilder(array.length * 8 + 16);
result.append(ARRAY + "<").append(ClassUtils.getShortName(array.getClass().getComponentType())).append(">[");
for (int i = 0; i < array.length - 1; i++) {
result.append(style(array[i]));
result.appe... |
public void testClassNamesToString() {
List ifcs = new LinkedList();
ifcs.add(Serializable.class);
ifcs.add(Runnable.class);
assertEquals("[interface java.io.Serializable, interface java.lang.Runnable]", ifcs.toString());
assertEquals("[java.io.Serializable, java.lang.Runnable]", ClassUtils.classNamesToStrin... | public void testClassNamesToString() {
List ifcs = new LinkedList();
ifcs.add(Serializable.class);
ifcs.add(Runnable.class);
assertEquals("[interface java.io.Serializable, interface java.lang.Runnable]", ifcs.toString());
assertEquals("[java.io.Serializable, java.lang.Runnable]", ClassUtils.classNamesToStrin... |
public AS7DataSourceDeployer getDeployer() throws ValidateException {
return new AS7DataSourceDeployer(dataSourceConfig.getValue().getUnModifiableInstance());
}
| public AS7DataSourceDeployer getDeployer() throws ValidateException {
return new AS7DataSourceDeployer(dataSourceConfig.getValue().getUnModifiableInstance(), dataSourceConfig.getValue().getProfile());
}
|
protected String decodeText(final String text)
throws DecoderException, UnsupportedEncodingException
{
if (text == null) {
return null;
}
if ((!text.startsWith(PREFIX)) || (!text.endsWith(POSTFIX))) {
throw new DecoderException("RFC 1522 violation: malforme... | protected String decodeText(final String text)
throws DecoderException, UnsupportedEncodingException
{
if (text == null) {
return null;
}
if ((!text.startsWith(PREFIX)) || (!text.endsWith(POSTFIX))) {
throw new DecoderException("RFC 1522 violation: malforme... |
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
if (value.isDefined()) {
String str = value.asString();
String[] results = str.split(",");
for (String result : results) {
int i = result.lastIndexOf(":"... | public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
if (value.isDefined()) {
String str = value.asString();
String[] results = str.split(",");
for (String result : results) {
int i = result.lastIndexOf(":"... |
public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ComponentStartService service) throws DeploymentUnitProcessingException {
serviceBuilder.addDependency(description.getCreateServiceName(), CmpEntityBeanComponent.class, factory.getComponentInjector(... | public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ComponentStartService service) throws DeploymentUnitProcessingException {
serviceBuilder.addDependency(description.getCreateServiceName(), CmpEntityBeanComponent.class, factory.getComponentInjector(... |
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
viewConfiguration.addViewInterceptor(new ImmediateInterceptorFactory(LoggingInterc... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
viewConfiguration.addViewInterceptor(LoggingInterceptor.FACTORY, InterceptorOrder.... |
package org.jboss.as.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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.core.model.test;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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 int setupNoRandPartC() throws IOException {
if (this.su_j2 < this.su_z) {
int su_ch2Shadow = this.su_ch2;
this.crc.updateCRC(su_ch2Shadow);
this.su_j2++;
this.currentState = NO_RAND_PART_C_STATE;
return su_ch2Shadow;
} else {
... | private int setupNoRandPartC() throws IOException {
if (this.su_j2 < this.su_z) {
int su_ch2Shadow = this.su_ch2;
this.crc.updateCRC(su_ch2Shadow);
this.su_j2++;
this.currentState = NO_RAND_PART_C_STATE;
return su_ch2Shadow;
} else {
... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final ServicesAttachment servicesAttachment... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final ServicesAttachment servicesAttachment... |
public void testAddDsAndTestConnection() throws Exception {
final ModelNode address = new ModelNode();
address.add("subsystem", "datasources");
address.add("data-source", "MySqlDs_Pool");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(... | public void testAddDsAndTestConnection() throws Exception {
final ModelNode address = new ModelNode();
address.add("subsystem", "datasources");
address.add("data-source", "MySqlDs_Pool");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(... |
private CacheContainerReadAttributeHandler() {
this(CacheContainerResource.CACHE_CONTAINER_ATTRIBUTES);
}
| private CacheContainerReadAttributeHandler() {
this(CacheContainerResourceDefinition.CACHE_CONTAINER_ATTRIBUTES);
}
|
public CacheContainerWriteAttributeHandler() {
this(CacheContainerResource.CACHE_CONTAINER_ATTRIBUTES);
}
| public CacheContainerWriteAttributeHandler() {
this(CacheContainerResourceDefinition.CACHE_CONTAINER_ATTRIBUTES);
}
|
private String removeJsessionid(String requestUri) {
int startIndex = requestUri.indexOf(";jsessionid=");
if (startIndex != -1) {
int endIndex = requestUri.indexOf(';', startIndex + 12);
String start = requestUri.substring(0, startIndex);
requestUri = (endIndex != -1) ? start + requestUri.substring(endInd... | private String removeJsessionid(String requestUri) {
int startIndex = requestUri.toLowerCase().indexOf(";jsessionid=");
if (startIndex != -1) {
int endIndex = requestUri.indexOf(';', startIndex + 12);
String start = requestUri.substring(0, startIndex);
requestUri = (endIndex != -1) ? start + requestUri.su... |
public State execute() {
State continuingState = new ValidateUserState(theConsole, stateValues);
if (stateValues.isSilentOrNonInteractive() == false) {
stateValues.setPassword(null); // If interactive we want to be sure to capture this.
/*
* Prompt for username.
... | public State execute() {
State continuingState = new ValidateUserState(theConsole, stateValues);
if (stateValues.isSilentOrNonInteractive() == false) {
stateValues.setPassword(null); // If interactive we want to be sure to capture this.
/*
* Prompt for username.
... |
public State execute() {
if (stateValues.isSilentOrNonInteractive() == false) {
if (rePrompt == false) {
// Password requirements.
RestrictionLevel level = stateValues.getOptions().getCheckUtil().getRestrictionLevel();
if (!RestrictionLevel.RELAX.e... | public State execute() {
if (stateValues.isSilentOrNonInteractive() == false) {
if (rePrompt == false) {
// Password requirements.
RestrictionLevel level = stateValues.getOptions().getCheckUtil().getRestrictionLevel();
if (!RestrictionLevel.RELAX.e... |
public State execute() {
theConsole.printf(AddUser.NEW_LINE);
theConsole.printf(DomainManagementLogger.ROOT_LOGGER.filePrompt());
theConsole.printf(AddUser.NEW_LINE);
String temp = theConsole.readLine("(a): ");
if (temp == null) {
/*
* This will ret... | public State execute() {
theConsole.printf(AddUser.NEW_LINE);
theConsole.printf(DomainManagementLogger.ROOT_LOGGER.filePrompt());
theConsole.printf(AddUser.NEW_LINE);
String temp = theConsole.readLine("(a): ");
if (temp == null) {
/*
* This will ret... |
public State execute() {
PasswordCheckResult result = stateValues.getOptions().getCheckUtil().check(false, stateValues.getUserName(), stateValues.getPassword());
final boolean warnResult = PasswordCheckResult.Result.WARN.equals(result.getResult());
final boole... | public State execute() {
PasswordCheckResult result = stateValues.getOptions().getCheckUtil().check(false, stateValues.getUserName(), stateValues.getPassword());
final boolean warnResult = PasswordCheckResult.Result.WARN.equals(result.getResult());
final boole... |
public State execute() {
String enteredRealm = stateValues.getRealm();
if (enteredRealm.length() == 0) {
return new ErrorState(theConsole, DomainManagementLogger.ROOT_LOGGER.realmMustBeSpecified(), new PromptRealmState(theConsole, stateValues));
}
if (stateValues.getFile... | public State execute() {
String enteredRealm = stateValues.getRealm();
if (enteredRealm.length() == 0) {
return new ErrorState(theConsole, DomainManagementLogger.ROOT_LOGGER.realmMustBeSpecified(), new PromptRealmState(theConsole, stateValues), stateValues);
}
if (stateV... |
public State execute() {
if (stateValues.isExistingDisabledUser() || stateValues.isExistingEnabledUser()) {
State duplicateContinuing = stateValues.isSilentOrNonInteractive() ? null :
new PromptNewUserState(theConsole, stateValues);
... | public State execute() {
if (stateValues.isExistingDisabledUser() || stateValues.isExistingEnabledUser()) {
State duplicateContinuing = stateValues.isSilentOrNonInteractive() ? null :
new PromptNewUserState(theConsole, stateValues);
... |
public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... | public static void initOperations(final ManagementResourceRegistration root,
final ContentRepository contentRepository,
final ExtensibleConfigurationPersister extensibleConfigurationPersister,
final Ser... |
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getDeployDeploymentOperation(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getReplaceDeploymentOperation(locale);
}
|
private JPADefaultDatasourceWriteHandler() {
super(new StringLengthValidator(0, Integer.MAX_VALUE, false, true), new StringLengthValidator(0, Integer.MAX_VALUE, false, false));
}
| private JPADefaultDatasourceWriteHandler() {
super(new StringLengthValidator(0, Integer.MAX_VALUE, true, true), new StringLengthValidator(0, Integer.MAX_VALUE, true, false));
}
|
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
// Check if we already have an OSGi deployment
Deployment deployment = OSGiDeploymentAttachment.getAttachme... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
// Check if we already have an OSGi deployment
Deployment deployment = OSGiDeploymentAttachment.getAttachme... |
public static ServiceController<String> addService(final ServiceName name, final String path,
boolean possiblyAbsolute, final String relativeTo, final ServiceTarget serviceTarget, final List<ServiceController<?>> newControllers,
... | public static ServiceController<String> addService(final ServiceName name, final String path,
boolean possiblyAbsolute, final String relativeTo, final ServiceTarget serviceTarget, final List<ServiceController<?>> newControllers,
... |
OperationResult execute(ModelNode operation, ResultHandler handler);
/*
* 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.
*
* T... | OperationResult execute(ModelNode operation, ResultHandler handler);
/*
* 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.
*
* T... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
for(final AttributeDefinition attribute : ATTR... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
for(final AttributeDefinition attribute : ATTR... |
public List<? extends PersistentResourceDefinition> getChildren() {
return Collections.singletonList(JSPDefinition.INSTANCE);
}
| public List<? extends PersistentResourceDefinition> getChildren() {
return Collections.singletonList(JspDefinition.INSTANCE);
}
|
public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotationType) {
Assert.notNull(clazz, "Class must not be null");
A annotation = clazz.getAnnotation(annotationType);
if (annotation != null) {
return annotation;
}
for (Class<?> ifc : clazz.getInterfaces()) {
annotation = ... | public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotationType) {
Assert.notNull(clazz, "Class must not be null");
A annotation = clazz.getAnnotation(annotationType);
if (annotation != null) {
return annotation;
}
for (Class<?> ifc : clazz.getInterfaces()) {
annotation = ... |
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
final Run... | 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
final Run... |
public static final ServiceName SERVICE_NAME = DeploymentService.SERVICE_NAME.append("item", "processor");
static final Method DEPLOYMENT_MODULE_SETTER;
static {
try {
DEPLOYMENT_MODULE_SETTER = DeploymentService.class.getMethod("setModule", Module.class);
} catch(NoSuchMethodEx... | public static final ServiceName SERVICE_NAME = DeploymentService.SERVICE_NAME.append("item", "processor");
static final Method DEPLOYMENT_MODULE_SETTER;
static {
try {
DEPLOYMENT_MODULE_SETTER = DeploymentItemProcessor.class.getMethod("setModule", Module.class);
} catch(NoSuchMe... |
public void start(StartContext context) throws StartException {
final ServiceContainer container = context.getController().getServiceContainer();
final URL url = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getUrl();
final String deploymentName = connectorXmlDescriptor == n... | public void start(StartContext context) throws StartException {
final ServiceContainer container = context.getController().getServiceContainer();
final URL url = connectorXmlDescriptor == null ? null : connectorXmlDescriptor.getUrl();
final String deploymentName = connectorXmlDescriptor == n... |
public void testMessageNumber() {
Assert.assertEquals(312, LocalizedFormats.values().length);
}
| public void testMessageNumber() {
Assert.assertEquals(313, LocalizedFormats.values().length);
}
|
public enum Status {
/*
* 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 can redistribute it an... | public enum Status {
MORE,
END_OF_LINE,
END_OF_STREAM;
} |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
try {
byte[] hash = null;
String failure = validator.validate(operation);
if (failure != null) {
throw new Operatio... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
try {
byte[] hash = null;
String failure = validator.validate(operation);
if (failure != null) {
throw new Operatio... |
public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
try {
String failure = validator.validate(operation);
if (failure == null) {
ModelNode deployments = context.getSubModel().get(... | public OperationResult execute(OperationContext context, ModelNode operation, ResultHandler resultHandler) throws OperationFailedException {
try {
String failure = validator.validate(operation);
if (failure == null) {
ModelNode deployments = context.getSubModel().get(... |
public void getResourceValue(final ComponentConfiguration componentConfiguration, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) {
injector.inject(managedReferenceFactory);
}
} | public void getResourceValue(final ResolutionContext resolutionContext, final ServiceBuilder<?> serviceBuilder, final DeploymentPhaseContext phaseContext, final Injector<ManagedReferenceFactory> injector) {
injector.inject(managedReferenceFactory);
}
} |
public void estimate(EstimationProblem problem)
throws EstimationException {
initializeEstimate(problem);
// work matrices
double[] grad = new double[parameters.length];
RealMatrixImpl bDecrement = new RealMatrixImpl(parameters.length, 1);
double[][] bDecrem... | public void estimate(EstimationProblem problem)
throws EstimationException {
initializeEstimate(problem);
// work matrices
double[] grad = new double[parameters.length];
RealMatrixImpl bDecrement = new RealMatrixImpl(parameters.length, 1);
double[][] bDecrem... |
public void printRecords(final ResultSet resultSet) throws SQLException, IOException {
ResultSetMetaData metaData = resultSet.getMetaData();
final int columnCount = metaData.getColumnCount();
boolean printHeader = false;
if (printHeader) {
for (int i = 1; i <= columnCount... | public void printRecords(final ResultSet resultSet) throws SQLException, IOException {
ResultSetMetaData metaData = resultSet.getMetaData();
final int columnCount = metaData.getColumnCount();
boolean printHeader = false;
if (printHeader) {
for (int i = 1; i <= columnCount... |
public void testLocaleIndependence() {
Locale orig = Locale.getDefault();
Locale[] locales = { Locale.ENGLISH, new Locale("tr"), Locale.getDefault() };
String[][] data = {
{ "i", "I" },
{ "\u03C2", "\u03C3" },
{ "\u03A3", "\u03C2" },
{ "\u03... | public void testLocaleIndependence() {
Locale orig = Locale.getDefault();
Locale[] locales = { Locale.ENGLISH, new Locale("tr", "", ""), Locale.getDefault() };
String[][] data = {
{ "i", "I" },
{ "\u03C2", "\u03C3" },
{ "\u03A3", "\u03C2" },
... |
private ClusterNode election(Set<ClusterNode> candidates) {
List<ClusterNode> nodes = this.dispatcher.getClusterNodes();
nodes.retainAll(candidates);
if (nodes.isEmpty()) return null;
return (this.electionPolicy == null) || (nodes.size() == 1) ? nodes.get(0) : this.electionPolicy.... | private ClusterNode election(Set<ClusterNode> candidates) {
List<ClusterNode> nodes = this.dispatcher.getClusterNodes();
nodes.retainAll(candidates);
if (nodes.isEmpty()) return null;
return (this.electionPolicy == null) ? nodes.get(0) : this.electionPolicy.elect(nodes);
}
|
public Object parseObject(String formattedDate) throws ParseException {
synchronized(this) {
return super.parse(formattedDate);
}
}
});
long fdfTime= measureTi... | public Object parseObject(String formattedDate) throws ParseException {
synchronized(this) {
return super.parse(formattedDate);
}
}
});
long fdfTime= measureTi... |
public void prettyPrint() throws Exception {
MockHttpOutputMessage outputMessage = new MockHttpOutputMessage();
PrettyPrintBean bean = new PrettyPrintBean();
bean.setName("Jason");
getConverter().setPrettyPrint(true);
getConverter().writeInternal(bean, outputMessage);
String result = outputMessage.getBody... | public void prettyPrint() throws Exception {
MockHttpOutputMessage outputMessage = new MockHttpOutputMessage();
PrettyPrintBean bean = new PrettyPrintBean();
bean.setName("Jason");
getConverter().setPrettyPrint(true);
getConverter().writeInternal(bean, outputMessage);
String result = outputMessage.getBody... |
public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final BoundedQueueThreadPoolSer... | public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final BoundedQueueThreadPoolSer... |
public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final QueuelessThreadPoolServic... | public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final QueuelessThreadPoolServic... |
public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final ScheduledThreadPoolServic... | public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final ScheduledThreadPoolServic... |
public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final UnboundedQueueThreadPoolS... | public void execute(RuntimeTaskContext context) throws OperationFailedException {
ServiceTarget target = context.getServiceTarget();
final ServiceName serviceName = ThreadsServices.executorName(params.getName());
final UnboundedQueueThreadPoolS... |
protected ModelNode convertParameterExpressions(final ModelNode parameter) {
if (isAllowExpression() && COMPLEX_TYPES.contains(type)) {
// They need to subclass and override
throw new IllegalStateException();
}
| protected ModelNode convertParameterExpressions(final ModelNode parameter) {
if (isAllowExpression() && COMPLEX_TYPES.contains(type) && ParseUtils.containExpression(parameter.asString())) {
// They need to subclass and override
throw new IllegalStateException();
}
|
private static ExtensionContext initializeDomainRegistry(final ManagementResourceRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMa... | private static ExtensionContext initializeDomainRegistry(final ManagementResourceRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMa... |
private void flushBlock() throws IOException {
if (outStream == null) {
throw new IOException("writing to an input buffer");
}
if (currRecIdx > 0) {
writeBlock();
}
}
| private void writeBlock() throws IOException {
if (outStream == null) {
throw new IOException("writing to an input buffer");
}
outStream.write(blockBuffer, 0, blockSize);
outStream.flush();
currRecIdx = 0;
currBlkIdx++;
Arrays.fill(blockBuffer, (... |
public InputStream openStream() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos));
for (String line : loadableExtensions) {
pw.println(line);
}
... | public InputStream openStream() {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos));
for (String line : loadableExtensions) {
pw.println(line);
}
... |
public LengthRestriction(int desiredLength) {
super(MESSAGES.passwordNotLontEnough(desiredLength));
this.desiredLength = desiredLength;
}
| public LengthRestriction(int desiredLength) {
super(MESSAGES.passwordNotLongEnough(desiredLength));
this.desiredLength = desiredLength;
}
|
public void testTooShortPassword() {
values.setUserName("willFail");
values.setPassword("1QwD%rf".toCharArray());
WeakCheckState weakCheckState = new WeakCheckState(consoleMock, values);
AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder().expectedErrorMessage(MESSAGES.p... | public void testTooShortPassword() {
values.setUserName("willFail");
values.setPassword("1QwD%rf".toCharArray());
WeakCheckState weakCheckState = new WeakCheckState(consoleMock, values);
AssertConsoleBuilder consoleBuilder = new AssertConsoleBuilder().expectedErrorMessage(MESSAGES.p... |
private final File serverTempDir;
DomainHttpServer(HttpServer server, ModelController modelController, File serverTempDir) {
this.server = server;
this.modelController = modelController;
this.serverTempDir = new File(serverTempDir, UPLOAD_TEMP_DIRECTORY);
// Create the upload s... | private final File serverTempDir;
DomainHttpServer(HttpServer server, ModelController modelController, File serverTempDir) {
this.server = server;
this.modelController = modelController;
this.serverTempDir = new File(serverTempDir, UPLOAD_TEMP_DIRECTORY);
// Create the upload s... |
public void stringConcatenation() throws Exception {
expression = parser.parseExpression("'hello' + getWorld() + ' spring'");
Greeter g = new Greeter();
Object o = expression.getValue(g);
assertEquals("helloworld spring", o);
System.out.println("Performance check for SpEL expression: '{'abcde','ijklm'}[0].s... | public void stringConcatenation() throws Exception {
expression = parser.parseExpression("'hello' + getWorld() + ' spring'");
Greeter g = new Greeter();
Object o = expression.getValue(g);
assertEquals("helloworld spring", o);
System.out.println("Performance check for SpEL expression: 'hello' + getWorld() + ... |
private static final Object[][] contents = {
// org.apache.commons.math.util.MathUtils
{ "overflow: gcd({0}, {1}) is 2^31",
"d\u00e9passement de capacit\u00e9 : le PGCD de {0} et {1} vaut 2^31" },
{ "cannot raise an integral value to a negative power ({0}^{1})",
"impossible d''\u00e9lever une... | private static final Object[][] contents = {
// org.apache.commons.math.util.MathUtils
{ "overflow: gcd({0}, {1}) is 2^31",
"d\u00e9passement de capacit\u00e9 : le PGCD de {0} et {1} vaut 2^31" },
{ "cannot raise an integral value to a negative power ({0}^{1})",
"impossible d''\u00e9lever une... |
protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator)DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
... |
public double getValue() {
return m1;
}
}
| public double getResult() {
return m1;
}
}
|
protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd, Class[] typesToMatch) {
Class factoryClass;
boolean isStatic = true;
String factoryBeanName = mbd.getFactoryBeanName();
if (factoryBeanName != null) {
if (factoryBeanName.equals(beanName)) {
throw new BeanDefinitionStoreEx... | protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd, Class[] typesToMatch) {
Class factoryClass;
boolean isStatic = true;
String factoryBeanName = mbd.getFactoryBeanName();
if (factoryBeanName != null) {
if (factoryBeanName.equals(beanName)) {
throw new BeanDefinitionStoreEx... |
public StringBuffer format(Complex complex, StringBuffer toAppendTo,
FieldPosition pos) {
pos.setBeginIndex(0);
pos.setEndIndex(0);
// format real
double re = complex.getReal();
CompositeFormat.formatDouble(re, getRealFormat(), toAppendTo, pos)... | public StringBuffer format(Complex complex, StringBuffer toAppendTo,
FieldPosition pos) {
pos.setBeginIndex(0);
pos.setEndIndex(0);
// format real
double re = complex.getReal();
CompositeFormat.formatDouble(re, getRealFormat(), toAppendTo, pos)... |
public void fallbackAfterConnectTimeout() throws Exception {
TestClientHandler clientHandler = new TestClientHandler();
this.errorFilter.sleepDelayMap.put("/xhr_streaming", 10000L);
this.errorFilter.responseStatusMap.put("/xhr_streaming", 503);
initSockJsClient(createXhrTransport());
this.sockJsClient.setTas... | public void fallbackAfterConnectTimeout() throws Exception {
TestClientHandler clientHandler = new TestClientHandler();
this.errorFilter.sleepDelayMap.put("/xhr_streaming", 10000L);
this.errorFilter.responseStatusMap.put("/xhr_streaming", 503);
initSockJsClient(createXhrTransport());
this.sockJsClient.setCon... |
public BatchRunHandler() {
super("batch-run");
}
| public BatchRunHandler() {
super("batch-run", true);
}
|
public void initialize(ExtensionContext context) {
context.registerSubsystem(NAMESPACE, FACTORY, PARSER);
}
| public void initialize(ExtensionContext context) {
context.registerSubsystem(NAMESPACE, PARSER);
}
|
public void initialize(ExtensionContext context) {
context.registerSubsystem(Namespace.MESSAGING_1_0.getUriString(), FACTORY, MessagingSubsystemParser.getInstance());
}
| public void initialize(ExtensionContext context) {
context.registerSubsystem(Namespace.MESSAGING_1_0.getUriString(), MessagingSubsystemParser.getInstance());
}
|
public void initialize(ExtensionContext context) {
context.registerSubsystem(Namespace.REMOTING_1_0.getUriString(), FACTORY, RemotingSubsystemParser.getInstance());
}
| public void initialize(ExtensionContext context) {
context.registerSubsystem(Namespace.REMOTING_1_0.getUriString(), RemotingSubsystemParser.getInstance());
}
|
public void initialize(final ExtensionContext context) {
context.registerSubsystem(Namespace.CURRENT.getUriString(), FACTORY, ThreadsParser.getInstance());
}
| public void initialize(final ExtensionContext context) {
context.registerSubsystem(Namespace.CURRENT.getUriString(), ThreadsParser.getInstance());
}
|
public void initialize(ExtensionContext context) {
context.registerSubsystem(NAMESPACE, FACTORY, TransactionSubsystemElementParser.getInstance());
}
| public void initialize(ExtensionContext context) {
context.registerSubsystem(NAMESPACE, TransactionSubsystemElementParser.getInstance());
}
|
private void doTest(MultivariateRealFunction func,
double[] startPoint,
double[][] boundaries,
GoalType goal,
double fTol,
double pointTol,
int maxEvaluations,
RealPointValuePair expected) {
System.out.println(func.getClass... | private void doTest(MultivariateRealFunction func,
double[] startPoint,
double[][] boundaries,
GoalType goal,
double fTol,
double pointTol,
int maxEvaluations,
RealPointValuePair expected) {
System.out.println(func.getClass... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION);
final Modu... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription moduleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION);
final Modu... |
public CSVParser(final Reader input) throws IOException {
this(input, CSVFormat.DEFAULT);
}
| public CSVParser(final Reader input) throws IOException {
this(input, CSVFormat.RFC4180_EMPTY_LINES);
}
|
public static final String ID = "PARAM";
PropertyState() {
this(PropertyValueState.INSTANCE);
}
PropertyState(PropertyValueState valueState) {
super(ID);
setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER);
putHandler(',', GlobalCharacterHandlers.LEAVE_ST... | public static final String ID = "PROP";
PropertyState() {
this(PropertyValueState.INSTANCE);
}
PropertyState(PropertyValueState valueState) {
super(ID);
setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER);
putHandler(',', GlobalCharacterHandlers.LEAVE_STA... |
public static final String ID = "ARG";
ArgumentState() {
this(ArgumentValueState.INSTANCE);
}
ArgumentState(ArgumentValueState valueState) {
super(ID);
setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER);
putHandler(' ', GlobalCharacterHandlers.LEAVE_STAT... | public static final String ID = "PROP";
ArgumentState() {
this(ArgumentValueState.INSTANCE);
}
ArgumentState(ArgumentValueState valueState) {
super(ID);
setEnterHandler(GlobalCharacterHandlers.CONTENT_CHARACTER_HANDLER);
putHandler(' ', GlobalCharacterHandlers.LEAVE_STA... |
public interface DestinationResolvingMessageSendingOperations<D> extends MessageSendingOperations<D> {
/*
* Copyright 2002-2013 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 ... | public interface DestinationResolvingMessageSendingOperations<D> extends MessageSendingOperations<D> {
/*
* Copyright 2002-2013 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 ... |
public static InterceptorClassDescription merge(InterceptorClassDescription existing, InterceptorClassDescription override) {
if (existing == null && override == null) {
return EMPTY_INSTANCE;
}
if (override == null) {
return existing;
}
if (existing =... | public static InterceptorClassDescription merge(InterceptorClassDescription existing, InterceptorClassDescription override) {
if (existing == null && override == null) {
return EMPTY_INSTANCE;
}
if (override == null) {
return existing;
}
if (existing =... |
public class TestAA {
/*
* 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 software; you can redistribute it and/or m... | public class TestAA {
/*
* 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 software; you can redistribute it and/or m... |
public class TestBB {
/*
* 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 software; you can redistribute it and/or m... | public class TestBB {
/*
* 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 software; you can redistribute it and/or m... |
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
if (context.isResourceServiceRestartAllowed()) {
EJB3RemoteServiceAdd.INSTANCE.installRuntimeService(context, model, null);
} else {
context.revert... | protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
if (context.isResourceServiceRestartAllowed()) {
EJB3RemoteServiceAdd.INSTANCE.installRuntimeServices(context, model, null);
} else {
context.rever... |
public Boolean transform(T input) {
return iPredicate.evaluate(input);
}
| public Boolean transform(T input) {
return Boolean.valueOf(iPredicate.evaluate(input));
}
|
public AS7DataSourceDeployer getDeployer() {
// this.dataSourceConfig = dataSourceConfig;
return new AS7DataSourceDeployer(log, dataSourceConfig.getValue());
}
| public AS7DataSourceDeployer getDeployer() {
// this.dataSourceConfig = dataSourceConfig;
return new AS7DataSourceDeployer(dataSourceConfig.getValue());
}
|
public final void handleMessage(Message<?> message) {
if (!this.running) {
if (logger.isTraceEnabled()) {
logger.trace("STOMP broker relay not running. Ignoring message id=" + message.getHeaders().getId());
}
return;
}
if (logger.isTraceEnabled()) {
logger.trace("Message " + message);
}
ha... | public final void handleMessage(Message<?> message) {
if (!this.running) {
if (logger.isTraceEnabled()) {
logger.trace("STOMP broker relay not running. Ignoring message id=" + message.getHeaders().getId());
}
return;
}
if (logger.isTraceEnabled()) {
logger.trace("Handling message " + message);
... |
private void decompose(RealMatrix covariance, double small)
throws NotPositiveDefiniteMatrixException {
int order = covariance.getRowDimension();
double[][] c = covariance.getData();
double[][] b = new double[order][order];
int[] swap = new int[order];
int[] index = ne... | private void decompose(RealMatrix covariance, double small)
throws NotPositiveDefiniteMatrixException {
int order = covariance.getRowDimension();
double[][] c = covariance.getData();
double[][] b = new double[order][order];
int[] swap = new int[order];
int[] index = ne... |
private void writeIdentityTrust(XMLExtendedStreamWriter writer, ModelNode modelNode) throws XMLStreamException {
if (modelNode.isDefined() && modelNode.asInt() > 0) {
writer.writeStartElement(Element.IDENTITY_TRUST.getLocalName());
writeLoginModule(writer, modelNode, Constants.TRUST_... | private void writeIdentityTrust(XMLExtendedStreamWriter writer, ModelNode modelNode) throws XMLStreamException {
if (modelNode.isDefined() && modelNode.asInt() > 0) {
writer.writeStartElement(Element.IDENTITY_TRUST.getLocalName());
writeLoginModule(writer, modelNode, Constants.TRUST_... |
public static JavaArchive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-security-test.jar");
jar.addPackage(AnnotatedSLSB.class.getPackage());
jar.addAsManifestResource("ejb/security/ejb-jar.xml", "ejb-jar.xml");
jar.addAsManifestResource(EJBS... | public static JavaArchive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-security-test.jar");
jar.addPackage(AnnotatedSLSB.class.getPackage());
jar.addAsManifestResource(EJBSecurityTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
jar... |
protected void execute(DeploymentProcessorTarget processorTarget) {
// set Hibernate persistence provider as the default provider
javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver(
PersistenceProviderResolverImpl.getIn... | protected void execute(DeploymentProcessorTarget processorTarget) {
// set Hibernate persistence provider as the default provider
javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver(
PersistenceProviderResolverImpl.getIn... |
private URL getPersistenceUnitURL(VirtualFile persistence_xml, boolean convertVFS) {
try {
VirtualFile metaData = persistence_xml;// di.getMetaDataFile("persistence.xml");
return convertVFS ?
metaData.getPhysicalFile().getParentFile().getParentFile().toURI().toURL... | private URL getPersistenceUnitURL(VirtualFile persistence_xml, boolean convertVFS) {
try {
VirtualFile metaData = persistence_xml;// di.getMetaDataFile("persistence.xml");
return convertVFS ?
metaData.getParent().getParent().getPhysicalFile().toURI().toURL() :
... |
private static List<String> findResourcePaths(String moduleName) throws ModuleLoadException, NoSuchFieldException, IllegalAccessException {
// TODO get a formal API from jboss-modules to replace this reflection
List<String> result = new ArrayList<String>();
Module module = Module.getModule... | private static List<String> findResourcePaths(String moduleName) throws ModuleLoadException, NoSuchFieldException, IllegalAccessException {
// TODO get a formal API from jboss-modules to replace this reflection
List<String> result = new ArrayList<String>();
Module module = Module.getModule... |
Class<?> getTargetClass();
/*
* 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/licenses/LICENSE-2.0... | Class<?> getTargetClass();
/*
* 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/licenses/LICENSE-2.0... |
protected UnivariateRealIntegratorImpl(final UnivariateRealFunction f,
final int defaultMaximalIterationCount)
throws IllegalArgumentException {
super(defaultMaximalIterationCount, 1.0e-15);
if (f == null) {
throw new IllegalArgumentExce... | protected UnivariateRealIntegratorImpl(final UnivariateRealFunction f,
final int defaultMaximalIterationCount)
throws IllegalArgumentException {
super(defaultMaximalIterationCount, 1.0e-15);
if (f == null) {
throw MathRuntimeException.cr... |
protected Map<String, Object> createColumnMap(int columnCount) {
return (Map<String, Object>) CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(columnCount);
}
| protected Map<String, Object> createColumnMap(int columnCount) {
return CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(columnCount);
}
|
protected Map<String, Object> createResultsMap() {
if (isResultsMapCaseInsensitive()) {
return (Map<String, Object>) CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(16);
}
else {
return new LinkedHashMap<String, Object>();
}
}
| protected Map<String, Object> createResultsMap() {
if (isResultsMapCaseInsensitive()) {
return CollectionFactory.createLinkedCaseInsensitiveMapIfPossible(16);
}
else {
return new LinkedHashMap<String, Object>();
}
}
|
public static final PathElement TRANSACTION_PATH = PathElement.pathElement(ModelKeys.TRANSACTION, ModelKeys.TRANSACTION_NAME);
// attributes
// cache mode required, txn mode not
static final SimpleAttributeDefinition LOCKING =
new SimpleAttributeDefinitionBuilder(ModelKeys.LOCKING, ModelTyp... | public static final PathElement TRANSACTION_PATH = PathElement.pathElement(ModelKeys.TRANSACTION, ModelKeys.TRANSACTION_NAME);
// attributes
// cache mode required, txn mode not
static final SimpleAttributeDefinition LOCKING =
new SimpleAttributeDefinitionBuilder(ModelKeys.LOCKING, ModelTyp... |
public void testDisabled() throws Exception {
this.tag.setDisabled("true");
this.tag.doStartTag();
this.tag.doEndTag();
String output = getOutput();
assertTagOpened(output);
assertTagClosed(output);
assertContainsAttribute(output, "disabled", "disabled");
}
| public void testDisabled() throws Exception {
this.tag.setDisabled(true);
this.tag.doStartTag();
this.tag.doEndTag();
String output = getOutput();
assertTagOpened(output);
assertTagClosed(output);
assertContainsAttribute(output, "disabled", "disabled");
}
|
public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("someBoolean");
this.tag.setDisabled("true");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output so it is valid XML
output = "<doc>" + output + "</do... | public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("someBoolean");
this.tag.setDisabled(true);
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output so it is valid XML
output = "<doc>" + output + "</doc>... |
public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled("true");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the outp... | public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled(true);
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.