Giter Site home page Giter Site logo

Comments (5)

ztkmkoo avatar ztkmkoo commented on September 17, 2024

@ParkSale Hi~

Thx reporting bug.

I clone the code from repository and pass the test in my environment. The code loadPrivateKeyFromFile is get resource file from test resources directory . (the file is in directory)
image

I need more information, your os, your project sdk(jdk) version, and your ide version, or your maven command

from dss.

ztkmkoo avatar ztkmkoo commented on September 17, 2024

@ParkSale
It likes encoding issue. Some error occurred when load the test resource. Can you fix the loadFromTestResources method?

package io.github.ztkmkoo.dss.server.rest;

public class DssRestServerTest {
    private static File loadFromTestResources(String path) {
        final ClassLoader classLoader = DssRestServerTest.class.getClassLoader();
        return new File(classLoader.getResource(path).getFile());
    }
}

from dss.

ztkmkoo avatar ztkmkoo commented on September 17, 2024

With local user account name(not eng), mvn install was failed for creating jacoco reporting file.
We have to modify jacoco plugins configuration at pom.xml(root)

  1. add property
<jacoco.agent.argLine></jacoco.agent.argLine>
  1. jacoco build plugin (im not sure other version worked)
<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.7.201606060606</version>
  <!-- <version>0.7.6.201602180812</version>-->
  <executions>
    <execution>
      <id>prepare-agent</id>
      <goals>
        <goal>prepare-agent</goal>
      </goals>
      <configuration>
      </configuration>
    </execution>
  </executions>
  <configuration>
    <propertyName>jacoco.agent.argLine</propertyName>
  </configuration>
</plugin>
  1. modify maven-surefire-plugin (at least 3.0.0-M3 or 2.22.0)
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>3.0.0-M3</version>
  <configuration>
    <argLine>${jacoco.agent.argLine}</argLine>
  </configuration>
</plugin>

from dss.

ztkmkoo avatar ztkmkoo commented on September 17, 2024

ref link bout jacoco

from dss.

ParkSale avatar ParkSale commented on September 17, 2024

Thank you . I solve this problem with your help and add decoding in loadFromTestResources method

from dss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.