Skip to content

Commit f2363e5

Browse files
introfogyulian-gaponenko
authored andcommitted
Move some classes to new events module
DEVSIX-5233 Autoported commit. Original commit hash: [42620abec] Manual files: kernel/src/main/java/com/itextpdf/kernel/counter/NamespaceConstant.java io/src/main/java/com/itextpdf/io/util/DateTimeUtil.java io/src/main/java/com/itextpdf/io/util/EncodingUtil.java io/src/main/java/com/itextpdf/io/util/MessageFormatUtil.java io/src/main/java/com/itextpdf/io/source/RandomAccessSourceFactory.java io/src/main/java/com/itextpdf/io/util/SystemUtil.java io/src/test/java/com/itextpdf/io/font/FontProgramTest.java kernel/src/main/java/com/itextpdf/kernel/utils/DefaultSafeXmlParserFactory.java sign/src/test/java/com/itextpdf/signatures/testutils/builder/TestCrlBuilder.java sign/src/test/java/com/itextpdf/signatures/testutils/builder/TestOcspResponseBuilder.java sign/src/test/java/com/itextpdf/signatures/testutils/builder/TestTimestampTokenBuilder.java sign/src/test/java/com/itextpdf/signatures/testutils/cert/TestCertificateBuilder.java styled-xml-parser/src/main/java/com/itextpdf/styledxmlparser/resolver/resource/UriResolver.java
1 parent 55c34d9 commit f2363e5

File tree

553 files changed

+1376
-1192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+1376
-1192
lines changed

itext.tests/itext.barcodes.tests/itext.barcodes.tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
<Project>{CEE5E7E1-1BF0-4BE1-9941-903262CE2F83}</Project>
114114
<Name>itext.io</Name>
115115
</ProjectReference>
116+
<ProjectReference Include="..\..\itext\itext.events\itext.events.csproj">
117+
<Project>{339569D2-3BA2-41CC-972C-70B05E4C4FCD}</Project>
118+
<Name>itext.events</Name>
119+
</ProjectReference>
116120
<ProjectReference Include="..\..\itext\itext.kernel\itext.kernel.csproj">
117121
<Project>{4E7819E8-7555-4E2E-9A01-D8718A2CFDDA}</Project>
118122
<Name>itext.kernel</Name>

itext.tests/itext.barcodes.tests/itext/barcodes/Barcode128Test.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ public virtual void Barcode02Test() {
9696

9797
[NUnit.Framework.Test]
9898
public virtual void BarcodeRawValueGenerationTest01() {
99-
NUnit.Framework.Assert.AreEqual(iText.IO.Util.JavaUtil.GetStringForBytes(new byte[] { 103, 17, 18, 19, 20,
100-
21, 17, 18, 19, 20, 21 }), Barcode128.GetRawText("1234512345", false, Barcode128.Barcode128CodeSet.A));
99+
NUnit.Framework.Assert.AreEqual(iText.Events.Util.JavaUtil.GetStringForBytes(new byte[] { 103, 17, 18, 19,
100+
20, 21, 17, 18, 19, 20, 21 }), Barcode128.GetRawText("1234512345", false, Barcode128.Barcode128CodeSet
101+
.A));
101102
}
102103
}
103104
}

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeMSITest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ source product.
4141
4242
*/
4343
using System;
44-
using iText.IO.Util;
44+
using iText.Events.Util;
4545
using iText.Kernel.Colors;
4646
using iText.Kernel.Pdf;
4747
using iText.Kernel.Pdf.Canvas;

itext.tests/itext.kernel.tests/itext/kernel/actions/exceptions/AggregatedExceptionTest.cs renamed to itext.tests/itext.events.tests/itext/events/exceptions/AggregatedExceptionTest.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ You should have received a copy of the GNU Affero General Public License
2424
using System.Collections.Generic;
2525
using iText.Test;
2626

27-
namespace iText.Kernel.Actions.Exceptions {
27+
namespace iText.Events.Exceptions {
2828
public class AggregatedExceptionTest : ExtendedITextTest {
2929
[NUnit.Framework.Test]
3030
public virtual void AggregatedMessageWithGeneralMessageTest() {
3131
IList<Exception> exceptions = new List<Exception>();
3232
exceptions.Add(new Exception("Message 1"));
3333
exceptions.Add(new Exception("Message 2"));
34-
exceptions.Add(new iText.IO.IOException("Message 3"));
34+
exceptions.Add(new AggregatedExceptionTest.CustomException("Message 3"));
3535
AggregatedException exception = new AggregatedException("General message", exceptions);
3636
NUnit.Framework.Assert.AreEqual(exceptions, exception.GetAggregatedExceptions());
3737
NUnit.Framework.Assert.AreEqual("General message:\n" + "0) Message 1\n" + "1) Message 2\n" + "2) Message 3\n"
@@ -43,10 +43,16 @@ public virtual void AggregatedMessageWithoutGeneralMessageTest() {
4343
IList<Exception> exceptions = new List<Exception>();
4444
exceptions.Add(new Exception("Message 1"));
4545
exceptions.Add(new Exception("Message 2"));
46-
exceptions.Add(new iText.IO.IOException("Message 3"));
46+
exceptions.Add(new AggregatedExceptionTest.CustomException("Message 3"));
4747
AggregatedException exception = new AggregatedException(exceptions);
4848
NUnit.Framework.Assert.AreEqual("Aggregated message:\n" + "0) Message 1\n" + "1) Message 2\n" + "2) Message 3\n"
4949
, exception.Message);
5050
}
51+
52+
private sealed class CustomException : Exception {
53+
public CustomException(String message)
54+
: base(message) {
55+
}
56+
}
5157
}
5258
}

itext.tests/itext.kernel.tests/itext/kernel/actions/sequence/SequenceIdManagerTest.cs renamed to itext.tests/itext.events.tests/itext/events/sequence/SequenceIdManagerTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ You should have received a copy of the GNU Affero General Public License
2121
along with this program. If not, see <https://www.gnu.org/licenses/>.
2222
*/
2323
using System;
24-
using iText.IO.Util;
25-
using iText.Kernel.Exceptions;
24+
using iText.Events.Exceptions;
25+
using iText.Events.Util;
2626
using iText.Test;
2727

28-
namespace iText.Kernel.Actions.Sequence {
28+
namespace iText.Events.Sequence {
2929
public class SequenceIdManagerTest : ExtendedITextTest {
3030
[NUnit.Framework.Test]
3131
public virtual void SetIdentifier() {
@@ -44,7 +44,7 @@ public virtual void OverrideIdentifierTest() {
4444
SequenceIdManager.SetSequenceId(element, sequenceId1);
4545
Exception e = NUnit.Framework.Assert.Catch(typeof(InvalidOperationException), () => SequenceIdManager.SetSequenceId
4646
(element, sequenceId2));
47-
NUnit.Framework.Assert.AreEqual(MessageFormatUtil.Format(KernelExceptionMessageConstant.ELEMENT_ALREADY_HAS_IDENTIFIER
47+
NUnit.Framework.Assert.AreEqual(MessageFormatUtil.Format(EventsExceptionMessageConstant.ELEMENT_ALREADY_HAS_IDENTIFIER
4848
, sequenceId1.GetId(), sequenceId2.GetId()), e.Message);
4949
}
5050

itext.tests/itext.kernel.tests/itext/kernel/actions/sequence/SequenceIdTest.cs renamed to itext.tests/itext.events.tests/itext/events/sequence/SequenceIdTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You should have received a copy of the GNU Affero General Public License
2222
*/
2323
using iText.Test;
2424

25-
namespace iText.Kernel.Actions.Sequence {
25+
namespace iText.Events.Sequence {
2626
public class SequenceIdTest : ExtendedITextTest {
2727
[NUnit.Framework.Test]
2828
public virtual void DifferentIdsCreatedTest() {

itext.tests/itext.io.tests/itext/io/util/collections/EmptySetTest.cs renamed to itext.tests/itext.events.tests/itext/events/util/Collections/EmptySetTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2020
You should have received a copy of the GNU Affero General Public License
2121
along with this program. If not, see <https://www.gnu.org/licenses/>.
2222
*/
23-
using System;
2423
using iText.Test;
2524

26-
namespace iText.IO.Util.Collections {
25+
namespace iText.Events.Util.Collections {
2726
public class EmptySetTest : ExtendedITextTest {
2827
[NUnit.Framework.Test]
2928
public virtual void RemoveValueFromEmptySetTest() {

itext.tests/itext.io.tests/itext/io/JavaUtilTest.cs renamed to itext.tests/itext.events.tests/itext/events/util/JavaUtilTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ source product.
4444
using System;
4545
using System.Collections.Generic;
4646
using System.Linq;
47-
using iText.IO.Util;
4847
using NUnit.Framework;
4948

50-
namespace iText.IO {
49+
namespace iText.Events.Util {
5150
public class JavaUtilTest {
5251
[Test]
5352
public virtual void LinkedHashSetTest() {

itext.tests/itext.forms.tests/itext.forms.tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
<Project>{CEE5E7E1-1BF0-4BE1-9941-903262CE2F83}</Project>
115115
<Name>itext.io</Name>
116116
</ProjectReference>
117+
<ProjectReference Include="..\..\itext\itext.events\itext.events.csproj">
118+
<Project>{339569D2-3BA2-41CC-972C-70B05E4C4FCD}</Project>
119+
<Name>itext.events</Name>
120+
</ProjectReference>
117121
<ProjectReference Include="..\..\itext\itext.kernel\itext.kernel.csproj">
118122
<Project>{4E7819E8-7555-4E2E-9A01-D8718A2CFDDA}</Project>
119123
<Name>itext.kernel</Name>

itext.tests/itext.forms.tests/itext/forms/FlatteningRotatedTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ source product.
4141
4242
*/
4343
using System;
44+
using iText.Events.Util;
4445
using iText.Forms.Fields;
45-
using iText.IO.Util;
4646
using iText.Kernel.Pdf;
4747
using iText.Kernel.Utils;
4848
using iText.Test;

0 commit comments

Comments
 (0)