Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>sorry for the late answer. I saw your question today for first time.</p> <p>I accepted your issue see also <a href="http://code.google.com/p/flyway-test-extensions/issues/detail?id=14" rel="nofollow">http://code.google.com/p/flyway-test-extensions/issues/detail?id=14</a>. </p> <p>The default implementation and example show not how it can work or give enough utilities to solve it.</p> <p>The solution can only be done with spring part depends on the implementation of flyway-test-extensions.</p> <p><b>a.) First part of a solution</b></p> <p>Its not a complete solution, because replacement of <em>flyway.placeholders.</em> will be done inside Flyway by method <em>configure</em> and that we can not invoke.</p> <p>Put following in your application context: <code></p> <pre><code>&lt;!-- also need this as additional include part --&gt; xmlns:util="http : //www.springframework.org/schema/util" xsi:schemaLocation=" http: // www.springframework.org/schema/util http: // www.springframework.org/schema/util/spring-util-3.0.xsd </code></pre> <p></code> and <code></p> <pre><code>&lt;!-- flyway part --&gt; &lt;util:properties id="flyway.prop" location="/flyway.properties"/&gt; &lt;bean id="flyway" class="com.googlecode.flyway.core.Flyway" depends-on="dataSourceRef"&gt; &lt;property name="dataSource" ref="dataSourceRef"/&gt; &lt;property name="placeholders" ref="flyway.prop"/&gt; &lt;/bean&gt; </code></pre> <p></code></p> <p>But than in your flyway.properties file you must remove <em>flyway.placeholders.</em> from the property definition. I think that not complete wanted solution. </p> <p><b>b.) Second part</b> </p> <p><b>EDIT</b></p> <p>Better solution use checkin from the current flyway-test-extension development.(<a href="http://code.google.com/p/flyway-test-extensions/source/detail?r=921f44bb206527db88f4b59faaf7ea968a743233" rel="nofollow">http://code.google.com/p/flyway-test-extensions/source/detail?r=921f44bb206527db88f4b59faaf7ea968a743233</a>)</p> <ul> <li>FlywayHelperFactory.java as a factory implementation for Flyway. Put this as part of your test sources.<br/>This should also work for a 1.7 version.</li> <li>flywayPropertiesContext.xml as a new application context. Put this as a test/resources in a directory called context.<br/>This contains two sample solution how the flyway.properties can be loaded. <br/>Note: <br/>This context do not use the jdbc.properties variable it use the flyway properties instead!<br/>This context should also work together with flyway-test-extension 1.7.0</li> <li>change your test settings and use <code>@ContextConfiguration(locationsForMirgation = { "/context/flywayPropertiesContext.xml" })</code> as a new configuration.</li> </ul> <p>florian</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload