This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demo; | |
import org.junit.jupiter.api.Test; | |
import org.mockito.AdditionalAnswers; | |
import org.springframework.beans.factory.ObjectProvider; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.boot.test.context.TestConfiguration; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Primary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Proto3AccessorNamingStrategy | |
extends DefaultAccessorNamingStrategy { | |
@Override | |
public String getElementName(ExecutableElement adderMethod) { | |
String methodName = | |
adderMethod.getSimpleName().toString() + "List"; | |
return Introspector.decapitalize(methodName.substring(3)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.eiswind.magnolia.springloaded; | |
import info.magnolia.module.blossom.annotation.Area; | |
import info.magnolia.module.blossom.annotation.Template; | |
import info.magnolia.module.blossom.dispatcher.BlossomDispatcherInitializedEvent; | |
import info.magnolia.module.blossom.render.BlossomDispatcherServlet; | |
import org.springframework.context.ConfigurableApplicationContext; | |
import org.springsource.loaded.Plugins; | |
import org.springsource.loaded.ReloadEventProcessorPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Taken from the Ivy Tests: Downloading p2 artifacts | |
settings = new IvySettings(); | |
p2SourceResolver = new UpdateSiteResolver(); | |
p2SourceResolver.setName("p2-sources"); | |
p2SourceResolver.setUrl(new File("test/test-p2/sources").toURI().toURL().toExternalForm()); | |
p2SourceResolver.setSettings(settings); | |
settings.addResolver(p2SourceResolver); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
******************************************************************************/ | |
package de.eiswind.mango.widgets.select2; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SELECT2_BASEPATH = "rwt-resources/select2/"; | |
(function() { | |
'use strict'; | |
rap.registerTypeHandler("eiswind.Select2", { | |
factory : function(properties) { | |
return new eiswind.Select2(properties); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<aggregator:Aggregation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2011/aggregator/1.1.0" label="emf" packedStrategy="SKIP" mavenResult="true"> | |
<validationSets label="emf"> | |
<contributions label="juno"> | |
<repositories location="http://download.eclipse.org/releases/juno/"> | |
<features name="org.eclipse.xsd.sdk.feature.group"/> | |
<features name="org.eclipse.xsd.source.feature.group"/> | |
</repositories> | |
</contributions> | |
</validationSets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.eiswind.mango.hibernate.osgi; | |
import java.util.List; | |
import javax.jms.Queue; | |
import javax.jms.QueueConnectionFactory; | |
import org.apache.log4j.Logger; | |
import org.hibernate.search.backend.IndexingMonitor; | |
import org.hibernate.search.backend.LuceneWork; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void setData( Object data ) { | |
checkWidget(); | |
if( ( state & KEYED_DATA ) != 0 ) { | |
( ( Object[] )this.data )[ 0 ] = data; | |
} else { | |
this.data = data; | |
} | |
if( UITestUtil.isEnabled() && data != null ) { | |
Class<? extends Object> clazz = data.getClass(); | |
while( clazz != Object.class ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_updateRows : function( from, delta, contentOnly ) { | |
this._updateRowsEvenState(); | |
var item = this._topItem; | |
var to = from + delta; | |
var row = 0; | |
while( item != null && row < this._children.length ) { | |
if( row >= from && row <= to ) { | |
this._renderRow( this._children[ row ], item, contentOnly ); | |
this._items[ row ] = item; | |
} |
NewerOlder