1
+ /*
2
+ This file is part of the iText (R) project.
3
+ Copyright (c) 1998-2022 iText Group NV
4
+ Authors: iText Software.
5
+
6
+ This program is offered under a commercial and under the AGPL license.
7
+ For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8
+
9
+ AGPL licensing:
10
+ This program is free software: you can redistribute it and/or modify
11
+ it under the terms of the GNU Affero General Public License as published by
12
+ the Free Software Foundation, either version 3 of the License, or
13
+ (at your option) any later version.
14
+
15
+ This program is distributed in the hope that it will be useful,
16
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ GNU Affero General Public License for more details.
19
+
20
+ You should have received a copy of the GNU Affero General Public License
21
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
22
+ */
1
23
using System ;
2
24
using System . Threading ;
3
25
using iText . Commons . Actions . Contexts ;
@@ -8,8 +30,8 @@ namespace iText.Forms.Fields {
8
30
public class FormsMetaInfoStaticContainerTest : ExtendedITextTest {
9
31
[ NUnit . Framework . Test ]
10
32
public virtual void UseMetaInfoDuringTheActionOneThreadTest ( ) {
11
- MetaInfoContainer metaInfo1 = new MetaInfoContainer ( new _IMetaInfo_16 ( ) ) ;
12
- MetaInfoContainer metaInfo2 = new MetaInfoContainer ( new _IMetaInfo_17 ( ) ) ;
33
+ MetaInfoContainer metaInfo1 = new MetaInfoContainer ( new _IMetaInfo_38 ( ) ) ;
34
+ MetaInfoContainer metaInfo2 = new MetaInfoContainer ( new _IMetaInfo_39 ( ) ) ;
13
35
FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo1 , ( ) => {
14
36
NUnit . Framework . Assert . AreSame ( metaInfo1 , FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) ) ;
15
37
FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo2 , ( ) => NUnit . Framework . Assert . AreSame ( metaInfo2
@@ -20,13 +42,13 @@ public virtual void UseMetaInfoDuringTheActionOneThreadTest() {
20
42
NUnit . Framework . Assert . IsNull ( FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) ) ;
21
43
}
22
44
23
- private sealed class _IMetaInfo_16 : IMetaInfo {
24
- public _IMetaInfo_16 ( ) {
45
+ private sealed class _IMetaInfo_38 : IMetaInfo {
46
+ public _IMetaInfo_38 ( ) {
25
47
}
26
48
}
27
49
28
- private sealed class _IMetaInfo_17 : IMetaInfo {
29
- public _IMetaInfo_17 ( ) {
50
+ private sealed class _IMetaInfo_39 : IMetaInfo {
51
+ public _IMetaInfo_39 ( ) {
30
52
}
31
53
}
32
54
@@ -56,7 +78,7 @@ public MetaInfoCheckClass(FormsMetaInfoStaticContainerTest.MetaInfoCheckClass me
56
78
}
57
79
58
80
public virtual void CheckMetaInfo ( ) {
59
- MetaInfoContainer metaInfo = new MetaInfoContainer ( new _IMetaInfo_56 ( ) ) ;
81
+ MetaInfoContainer metaInfo = new MetaInfoContainer ( new _IMetaInfo_78 ( ) ) ;
60
82
FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo , ( ) => {
61
83
if ( metaInfoCheckClass != null ) {
62
84
Thread thread = new Thread ( ( ) => metaInfoCheckClass . CheckMetaInfo ( ) ) ;
@@ -74,8 +96,8 @@ public virtual void CheckMetaInfo() {
74
96
checkFailed |= FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) != null ;
75
97
}
76
98
77
- private sealed class _IMetaInfo_56 : IMetaInfo {
78
- public _IMetaInfo_56 ( ) {
99
+ private sealed class _IMetaInfo_78 : IMetaInfo {
100
+ public _IMetaInfo_78 ( ) {
79
101
}
80
102
}
81
103
0 commit comments