Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NagarjunaKuchi committed Nov 14, 2019
0 parents commit b250f23
Show file tree
Hide file tree
Showing 57 changed files with 1,703 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>pmp-ruv</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.5
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
51 changes: 51 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.mosip.pmp.ruv</groupId>
<artifactId>pmp-ruv</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>

<name>pmp-ruv</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.0.7</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.14.1</version>
<configuration>
<!-- Suite testng xml file to consider for test execution -->
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
</project>
25 changes: 25 additions & 0 deletions src/main/java/io/mosip/pmp/ruv/ResourceUrlValidator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.mosip.pmp.ruv;

import org.testng.Assert;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

import io.mosip.pmp.ruv.validate.Validator;

@Test
public class ResourceUrlValidator
{
@BeforeSuite
public void beforeSuite(){

}

@Test
private void run(){
Validator validator = new Validator();
boolean isSuccess = validator.valiadte();
if(!isSuccess){
Assert.fail();
}
}
}
49 changes: 49 additions & 0 deletions src/main/java/io/mosip/pmp/ruv/resources/PmpResources.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package io.mosip.pmp.ruv.resources;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;


public class PmpResources {

public static Map<String, ArrayList<String>> GetMispResources(){
Map<String,ArrayList<String>> mispResources = new HashMap<String, ArrayList<String>>();

ArrayList<String> postResources = new ArrayList<String>();
postResources.add("/pmp/misps");
postResources.add("/pmp/misps/1");
postResources.add("/pmp/misps/1/licenseKey");

ArrayList<String> getResources = new ArrayList<String>();
getResources.add("/pmp/misps/");
getResources.add("/pmp/misps/1");

ArrayList<String> putResources = new ArrayList<String>();
putResources.add("/pmp/misps/1");
putResources.add("/pmp/misps/1/licenseKey");


mispResources.put("POST",postResources);
mispResources.put("GET",getResources);
mispResources.put("PUT",putResources);

return mispResources;

}

public Map<String, String> GetPolicyResources(){
return null;

}

public HashMap<String, String> GetPartnerResources(){
return null;

}

public HashMap<String, String> GetPManagerResources(){
return null;

}
}
Loading

0 comments on commit b250f23

Please sign in to comment.