mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UpdateStrategyTest fixed
This commit is contained in:
@@ -53,6 +53,7 @@ public class UpdateStrategyTest extends TestCase {
|
||||
//assume user has version 9 eap - and used eap channel - we want to introduce new eap
|
||||
final TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP);
|
||||
settings.addIgnoredBuildNumber("95.627");
|
||||
settings.addIgnoredBuildNumber("98.620");
|
||||
//first time load
|
||||
UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString("IU-95.429"), UpdatesInfoXppParserTest.InfoReader.read("idea-new9eap.xml"), settings);
|
||||
|
||||
@@ -65,9 +66,9 @@ public class UpdateStrategyTest extends TestCase {
|
||||
public void testNewChannelAppears() {
|
||||
// assume user has version 9 eap subscription (default or selected)
|
||||
// and new channel appears - eap of version 10 is there
|
||||
final TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP);
|
||||
final TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.RELEASE);
|
||||
//first time load
|
||||
UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString("IU-95.627"), UpdatesInfoXppParserTest.InfoReader.read("idea-newChannel.xml"), settings);
|
||||
UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString("IU-95.627"), UpdatesInfoXppParserTest.InfoReader.read("idea-newChannel-release.xml"), settings);
|
||||
|
||||
|
||||
final CheckForUpdateResult result = strategy.checkForUpdates();
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<products>
|
||||
<product name="IntelliJ IDEA">
|
||||
<code>IU</code>
|
||||
<code>IC</code>
|
||||
|
||||
<channel id="maiaEAP" name="IntelliJ IDEA 9 updates" status="release" majorVersion="9"
|
||||
url="http://www.jetbrains.com/idea/whatsnew"
|
||||
feedback="http://youtrack.jetbrains.net">
|
||||
<build number="95.627" version="9.0.4">
|
||||
<message>IntelliJ IDEA 9.0.4 is available.
|
||||
Please visit http://www.jetbrains.com/idea to learn more and download it.
|
||||
</message>
|
||||
<patch from="95.429" size="2"/>
|
||||
</build>
|
||||
</channel>
|
||||
|
||||
<channel id="idea90" name="IntelliJ IDEA 9 updates" status="release" majorVersion="9"
|
||||
url="http://www.jetbrains.com/idea/whatsnew">
|
||||
<build number="95.627" version="9.0.4">
|
||||
<message>IntelliJ IDEA 9.0.4 is available.
|
||||
Please visit http://www.jetbrains.com/idea to learn more and download it.
|
||||
</message>
|
||||
<patch from="95.429" size="2"/>
|
||||
</build>
|
||||
</channel>
|
||||
|
||||
<channel id="IDEA10EAP" name="IntelliJ IDEA X EAP" status="release" majorVersion="10"
|
||||
url="http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP">
|
||||
<build number="98.520" version="10">
|
||||
<message>IntelliJ IDEA X RC is available.
|
||||
Please visit http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP to learn more and download it.
|
||||
</message>
|
||||
<!--<patch from="98.486" size="1"/>-->
|
||||
</build>
|
||||
</channel>
|
||||
</product>
|
||||
|
||||
|
||||
</products>
|
||||
Reference in New Issue
Block a user