Skip to content

Commit db1e65f

Browse files
committed
test: production decomp with escaped CDATA
1 parent a0c8254 commit db1e65f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/UnitTest/SourceControl/Git/ProductionDecomposition.cls

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ Method TestEditProduction()
8282
$$$ThrowOnError(%SourceControl.OnBeforeSave(..#ProductionName_".cls"))
8383
do ..ReplaceProductionDefinition("ProductionDefinition3")
8484
$$$ThrowOnError(%SourceControl.OnAfterSave(..#ProductionName_".cls"))
85-
do $$$AssertTrue(##class(SourceControl.Git.Utils).IsInSourceControl("UnitTest.SampleProduction||Settings-b|Ens.Activity.Operation.Local.PTD"))
85+
do $$$AssertTrue(##class(SourceControl.Git.Utils).IsInSourceControl("UnitTest.SampleProduction||Settings-b|EnsLib.SOAP.GenericOperation.PTD"))
8686
do ##class(SourceControl.Git.Utils).RunGitCommand("add",,,".")
8787
do ##class(SourceControl.Git.Utils).Commit("UnitTest.SampleProduction||Settings-a|Ens.Activity.Operation.Local.PTD")
88-
do ##class(SourceControl.Git.Utils).Commit("UnitTest.SampleProduction||Settings-b|Ens.Activity.Operation.Local.PTD")
88+
do ##class(SourceControl.Git.Utils).Commit("UnitTest.SampleProduction||Settings-b|EnsLib.SOAP.GenericOperation.PTD")
8989
$$$ThrowOnError(production.%Reload())
9090
do $$$AssertEquals(production.Items.Count(), 2)
9191
do $$$AssertEquals(production.Items.GetAt(1).Settings.GetAt(1).Name, "RecordStatsInterval")
@@ -135,7 +135,8 @@ XData ProductionDefinition2
135135
<Item Name="a" Category="" ClassName="Ens.Activity.Operation.Local" PoolSize="1" Enabled="true" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
136136
<Setting Target="Host" Name="RecordStatsInterval">61</Setting>
137137
</Item>
138-
<Item Name="b" Category="" ClassName="Ens.Activity.Operation.Local" PoolSize="1" Enabled="true" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
138+
<Item Name="b" Category="" ClassName="EnsLib.SOAP.GenericOperation" PoolSize="1" Enabled="false" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
139+
<Setting Target="Adapter" Name="HTTPServer"><![CDATA[<something that must be escaped>]]></Setting>
139140
</Item>
140141
</Production>
141142
}
@@ -147,7 +148,8 @@ XData ProductionDefinition3
147148
<Item Name="a" Category="" ClassName="Ens.Activity.Operation.Local" PoolSize="1" Enabled="true" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
148149
<Setting Target="Host" Name="RecordStatsInterval">71</Setting>
149150
</Item>
150-
<Item Name="b" Category="" ClassName="Ens.Activity.Operation.Local" PoolSize="1" Enabled="true" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
151+
<Item Name="b" Category="" ClassName="EnsLib.SOAP.GenericOperation" PoolSize="1" Enabled="false" Foreground="false" Comment="" LogTraceEvents="false" Schedule="">
152+
<Setting Target="Adapter" Name="HTTPServer"><![CDATA[<something that must be escaped>]]></Setting>
151153
</Item>
152154
</Production>
153155
}

0 commit comments

Comments
 (0)