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
import org.junit.jupiter.api.extension.AfterEachCallback; | |
import org.junit.jupiter.api.extension.BeforeEachCallback; | |
import org.junit.jupiter.api.extension.ExtensionContext; | |
public class JUnit5CustomExtension implements AfterEachCallback, BeforeEachCallback { | |
@Override | |
public void beforeEach(ExtensionContext extensionContext) throws Exception { | |
System.out.println(this.getClass().getSimpleName() + " " + extensionContext.getDisplayName() + " has started"); | |
} |
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
<plugins> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.22.2</version> | |
</plugin> | |
</plugins> |
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
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-api</artifactId> | |
<version>5.6.0</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-engine</artifactId> | |
<version>5.6.0</version> |
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
import { Injectable } from '@angular/core'; | |
@Injectable() | |
export class CommonService { | |
// javascript object types | |
TYPE_OBJECT = 'object' | |
TYPE_FUNCTION = 'function' | |
TYPE_STRING = 'string' | |
TYPE_UNDEFINED = 'undefined' |
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
import com.google.cloud.storage.Blob; | |
import com.google.cloud.storage.Bucket; | |
import com.google.firebase.cloud.StorageClient; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; | |
import org.springframework.util.StringUtils; | |
import org.springframework.web.multipart.MultipartFile; | |
import java.io.IOException; | |
@Service |
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
@Component | |
public class FireBaseConfig { | |
@Value("${firebase.bucket-name}") | |
private String bucketName; | |
@PostConstruct | |
public void init() { | |
FileInputStream serviceAccount = null; | |
try { | |
serviceAccount = new FileInputStream("./serviceAccountKey.json"); |
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
firebase.bucket-name=test-project-ee5c9.appspot.com | |
firebase.image-url=https://storage.googleapis.com/${firebase.bucket-name}/%s |
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
<dependency> | |
<groupId>com.google.firebase</groupId> | |
<artifactId>firebase-admin</artifactId> | |
<version>8.0.0</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.cloud</groupId> | |
<artifactId>google-cloud-storage</artifactId> | |
<version>1.96.0</version> | |
</dependency> |
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
https://drive.google.com/file/d/1qRI9XAlia47eY2LZrJTMa0WmWZJE54UN/view?usp=sharing |
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
"schematics": { | |
"@schematics/angular:application": { | |
"strict": true | |
} | |
}, |