-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CODE Make Testing module work gradle
report generates Signed-off-by: Andres LeonRangel <[email protected]>
- Loading branch information
Showing
10 changed files
with
223 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
version: '3' | ||
services: | ||
openldap: | ||
# https://github.com/osixia/docker-openldap | ||
# https://www.openldap.org | ||
image: osixia/openldap:1.2.4 | ||
environment: | ||
LDAP_ORGANISATION: "IT Latinos NZ" | ||
LDAP_DOMAIN: "latintech.org" | ||
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASS} | ||
ports: | ||
- 389:389 | ||
- 636:636 | ||
volumes: | ||
- ./ldap:/var/lib/ldap | ||
- ./ldap:/etc/ldap/slapd.d | ||
webapp: | ||
image: aleon1220/soa:latest | ||
ports: | ||
- 8080:8080 | ||
version: '3' | ||
services: | ||
openldap: | ||
# https://github.com/osixia/docker-openldap | ||
# https://www.openldap.org | ||
image: osixia/openldap:1.2.4 | ||
environment: | ||
LDAP_ORGANISATION: "IT Latinos NZ" | ||
LDAP_DOMAIN: "latintech.org" | ||
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASS} | ||
ports: | ||
- 389:389 | ||
- 636:636 | ||
volumes: | ||
- ./ldap:/var/lib/ldap | ||
- ./ldap:/etc/ldap/slapd.d | ||
webapp: | ||
image: aleon1220/soa:latest | ||
ports: | ||
- 8080:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
package service; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Paths; | ||
|
||
import com.google.zxing.BarcodeFormat; | ||
import com.google.zxing.MultiFormatWriter; | ||
import com.google.zxing.WriterException; | ||
import com.google.zxing.client.j2se.MatrixToImageWriter; | ||
import com.google.zxing.common.BitMatrix; | ||
|
||
public class GenerateQRCode { | ||
|
||
public void createWebsiteQRCode() throws WriterException, IOException { | ||
String qrData = "www.andres.nz"; | ||
String localPath = "/home/aleonrangel"; | ||
boolean validateQR = false; | ||
|
||
BitMatrix matrix = new MultiFormatWriter().encode(qrData, BarcodeFormat.QR_CODE, 500, 500, null); | ||
MatrixToImageWriter.writeToPath(matrix, "png", Paths.get(localPath), null); | ||
System.out.println("QR code created"); | ||
validateQR = true; | ||
} | ||
} | ||
package service; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Paths; | ||
|
||
import com.google.zxing.BarcodeFormat; | ||
import com.google.zxing.MultiFormatWriter; | ||
import com.google.zxing.WriterException; | ||
import com.google.zxing.client.j2se.MatrixToImageWriter; | ||
import com.google.zxing.common.BitMatrix; | ||
|
||
public class GenerateQRCode { | ||
public boolean validateQR = false; | ||
|
||
public void createWebsiteQRCode() throws WriterException, IOException { | ||
String qrData = "www.andres.nz"; | ||
String localPath = "/home/aleonrangel"; | ||
BitMatrix matrix = new MultiFormatWriter().encode(qrData, BarcodeFormat.QR_CODE, 500, 500, null); | ||
MatrixToImageWriter.writeToPath(matrix, "png", Paths.get(localPath), null); | ||
System.out.println("QR code created"); | ||
validateQR = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.