This file contains hidden or 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"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" | |
| xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" | |
| xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:aop="http://www.springframework.org/schema/aop" | |
| xmlns:util="http://www.springframework.org/schema/util" xmlns:task="http://www.springframework.org/schema/task" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
| http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd | |
| http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd |
This file contains hidden or 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
| com.ofg.loans.backend.service.address.finder | |
| interface AddressFinder | |
| List<Address> find(Criteria) | |
| class Address | |
| String valueOf(AddressDetail addressDetail) | |
| interface AddressDetail | |
| enum UkAddressDetail implements AddressDetail |
This file contains hidden or 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
| Configuration cfg, | |
| Mapping mapping, | |
| Settings settings, | |
| EventListeners listeners, | |
| SessionFactoryObserver observer) throws HibernateException { | |
| log.info("building session factory"); | |
| this.statistics = new ConcurrentStatisticsImpl( this ); | |
| getStatistics().setStatisticsEnabled( settings.isStatisticsEnabled() ); | |
| log.debug( "Statistics initialized [enabled={}]}", settings.isStatisticsEnabled() ); |
This file contains hidden or 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 SessionFactoryImpl( | |
| Configuration cfg, | |
| Mapping mapping, | |
| Settings settings, | |
| EventListeners listeners, | |
| SessionFactoryObserver observer) throws HibernateException { | |
| log.info("building session factory"); | |
| this.statistics = new ConcurrentStatisticsImpl( this ); | |
| getStatistics().setStatisticsEnabled( settings.isStatisticsEnabled() ); |
This file contains hidden or 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
| Feature: Mailbox | |
| Scenario: Registered users have a new message in the mailbox #1 | |
| Given I am "Johnny" | |
| When I check my mailbox | |
| Then I should have a "Welcome Johnny" message | |
| Scenario: Registered users have a new message in the mailbox #2 | |
| Given I am "Eduards" | |
| When I check my mailbox |
This file contains hidden or 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 fm.ask.dao.user.auth; | |
| import com.google.common.collect.ImmutableMap; | |
| import com.rubylight.dao.ChunkQueryNotTotalMySQL; | |
| import com.rubylight.dao.DAOAppException; | |
| import com.rubylight.dao.DAOSysException; | |
| import com.rubylight.dao.IChunkQueryDefinition; | |
| import com.rubylight.dao.connection.IConnectionLookup; | |
| import com.rubylight.entity.IChunkProperties; | |
| import com.rubylight.entity.IListChunk; |
This file contains hidden or 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
| void doStuff() { | |
| if (newImplementation.isToggled()) { | |
| doStuffInANewWay(); | |
| } else { | |
| // DROP [new_do_stuff_toggled] | |
| doStuffInAnOldWay(); | |
| } | |
| } | |
| // DROP [marketing_campaign_finished] |
This file contains hidden or 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
| Map dropConditions = [ | |
| new_do_stuff_toggled : { cfg("new_do_stuff.enabled") == "true" }, | |
| marketing_campaign_finished : { timeCame "09/04/2014" } | |
| ] |
This file contains hidden or 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
| def timeCame(String date) { | |
| def today = new Date() | |
| def expirationDate = new Date().parse('dd/MM/yyyy', date) | |
| today.after expirationDate | |
| } |
This file contains hidden or 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
| def cfg(key) { | |
| def uri = "http://production.configuration/$key".toURL() | |
| uri.getText(connectTimeout: 2000, readTimeout: 3000) | |
| } |
OlderNewer