Skip to content

Commit

Permalink
[RELEASE] iText 7 7.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iText-CI committed Mar 24, 2022
2 parents 5a694e8 + ed67f5e commit 57a0339
Show file tree
Hide file tree
Showing 2,401 changed files with 14,711 additions and 10,918 deletions.
2 changes: 1 addition & 1 deletion doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "iText 7 7.2.1 API"
PROJECT_NAME = "iText 7 7.2.2 API"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
8 changes: 4 additions & 4 deletions itext.tests/itext.barcodes.tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iText Group NV")]
[assembly: AssemblyProduct("iText")]
[assembly: AssemblyCopyright("Copyright (c) 1998-2021 iText Group NV")]
[assembly: AssemblyCopyright("Copyright (c) 1998-2022 iText Group NV")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: ComVisible(false)]

[assembly: Guid("d015a3aa-613c-45d9-b908-7d47c4b613af")]

[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: AssemblyInformationalVersion("7.2.1")]
[assembly: AssemblyVersion("7.2.2.0")]
[assembly: AssemblyFileVersion("7.2.2.0")]
[assembly: AssemblyInformationalVersion("7.2.2")]

#if !NETSTANDARD2_0
[assembly: NUnit.Framework.Timeout(300000)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -50,21 +50,21 @@ source product.

namespace iText.Barcodes {
public class BarcodeCodabarTest : ExtendedITextTest {
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
private static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

public static readonly String destinationFolder = NUnit.Framework.TestContext.CurrentContext.TestDirectory
private static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory
+ "/test/itext/barcodes/Codabar/";

[NUnit.Framework.OneTimeSetUp]
public static void BeforeClass() {
CreateDestinationFolder(destinationFolder);
CreateDestinationFolder(DESTINATION_FOLDER);
}

[NUnit.Framework.Test]
public virtual void Barcode01Test() {
String filename = "codabar.pdf";
PdfWriter writer = new PdfWriter(destinationFolder + filename);
PdfWriter writer = new PdfWriter(DESTINATION_FOLDER + filename);
PdfDocument document = new PdfDocument(writer);
PdfPage page = document.AddNewPage();
PdfCanvas canvas = new PdfCanvas(page);
Expand All @@ -73,52 +73,48 @@ public class BarcodeCodabarTest : ExtendedITextTest {
codabar.SetStartStopText(true);
codabar.PlaceBarcode(canvas, null, null);
document.Close();
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + filename, sourceFolder
+ "cmp_" + filename, destinationFolder, "diff_"));
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(DESTINATION_FOLDER + filename, SOURCE_FOLDER
+ "cmp_" + filename, DESTINATION_FOLDER, "diff_"));
}

[NUnit.Framework.Test]
public virtual void BarcodeHasNoAbcdAsStartCharacterTest() {
NUnit.Framework.Assert.That(() => {
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
BarcodeCodabar.GetBarsCodabar("qbcd");
}
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
;
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
Exception exception = NUnit.Framework.Assert.Catch(typeof(ArgumentException), () => BarcodeCodabar.GetBarsCodabar
("qbcd"));
NUnit.Framework.Assert.AreEqual(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER
, exception.Message);
}

[NUnit.Framework.Test]
public virtual void BarcodeHasNoAbcdAsStopCharacterTest() {
NUnit.Framework.Assert.That(() => {
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
BarcodeCodabar.GetBarsCodabar("abcf");
}
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
;
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
Exception exception = NUnit.Framework.Assert.Catch(typeof(ArgumentException), () => BarcodeCodabar.GetBarsCodabar
("abcf"));
NUnit.Framework.Assert.AreEqual(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER
, exception.Message);
}

[NUnit.Framework.Test]
public virtual void BarcodeHasNoAbcdAsStartAndStopCharacterTest() {
NUnit.Framework.Assert.That(() => {
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
BarcodeCodabar.GetBarsCodabar("qbcq");
}
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
;
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
Exception exception = NUnit.Framework.Assert.Catch(typeof(ArgumentException), () => BarcodeCodabar.GetBarsCodabar
("qbcq"));
NUnit.Framework.Assert.AreEqual(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER
, exception.Message);
}

[NUnit.Framework.Test]
public virtual void BarcodeHasNoStartAndStopCharacterTest() {
NUnit.Framework.Assert.That(() => {
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
BarcodeCodabar.GetBarsCodabar("");
}
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_AT_LEAST_START_AND_STOP_CHARACTER))
;
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
Exception exception = NUnit.Framework.Assert.Catch(typeof(ArgumentException), () => BarcodeCodabar.GetBarsCodabar
(""));
NUnit.Framework.Assert.AreEqual(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_AT_LEAST_START_AND_STOP_CHARACTER
, exception.Message);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
Expand Down

0 comments on commit 57a0339

Please sign in to comment.