Skip to content

Commit

Permalink
:refactor rename objects
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrofpk committed Jul 9, 2022
1 parent cf0495c commit 628bc21
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
@SpringBootApplication
@EnableRabbit
@EnableAsync
public class BeaconApplication {
public class BeaconEngineApplication {

public static void main(String[] args) {
SpringApplication.run(BeaconApplication.class, args);
SpringApplication.run(BeaconEngineApplication.class, args);
}

@EventListener(ContextRefreshedEvent.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE vdf_combination
ADD COLUMN status_code int(11) NOT NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
@SpringBootApplication
@EnableScheduling
@EnableRabbit
public class Application {
public class BeaconInterfaceApplication {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
SpringApplication.run(BeaconInterfaceApplication.class, args);
}

@EventListener(ContextRefreshedEvent.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.example.beacon.vdf.application.combination;

import com.example.beacon.vdf.application.combination.dto.VdfPulseDtoPost;
import com.example.beacon.vdf.application.vdfunicorn.SeedPostDto;
import org.bouncycastle.pqc.math.linearalgebra.ByteUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -14,28 +16,30 @@

import static com.example.beacon.vdf.infra.util.DateUtil.getTimeStampFormated;

//@RunWith(SpringRunner.class)
//@SpringBootTest
//@TestPropertySource("classpath:application-test.properties")
@RunWith(SpringRunner.class)
@SpringBootTest
@TestPropertySource("classpath:application-test.properties")
public class CombinationServiceTest {

// @Autowired
// CombinationService combinationService;
@Autowired
CombinationService combinationService;

// @Test
// public void precommitSeedAndOneMore() throws Exception {
// VdfPulseDtoPost vdfPulseDto = new VdfPulseDtoPost();
// vdfPulseDto.setCertificateId("02288edbdc04bdeeb1c8140a41a1ad40ab2ea7ad27fdd316946f3ec5aff1a7129f1fb5078202d75d42c201878b06d79c45bf37adb55f83aa213200834792b1da");
// vdfPulseDto.setSeed("100EFBEB29F458E06BF267EBB5CFCE768F9980317555E8C716B7CBE6C2BC07BE4983121D8DC0384AD6EF6ED4FC7C8EFDCB90509649AF3126A621368FA9073D12");
// vdfPulseDto.setCipherSuite(0);
// vdfPulseDto.setOriginEnum(OriginEnum.NIST);
//
// SeedPostDto seedPostDto = new SeedPostDto("100EFBEB29F458E06BF267EBB5CFCE768F9980317555E8C716B7CBE6C2BC07" +
// "BE4983121D8DC0384AD6EF6ED4FC7C8EFDCB90509649AF3126A621368FA9073D12",
// OriginEnum.NIST.toString());
@Test
public void precommitSeedAndOneMore() throws Exception {
VdfPulseDtoPost vdfPulseDto = new VdfPulseDtoPost();
vdfPulseDto.setCertificateId("02288edbdc04bdeeb1c8140a41a1ad40ab2ea7ad27fdd316946f3ec5aff1a7129f1fb5078202d75d42c201878b06d79c45bf37adb55f83aa213200834792b1da");
vdfPulseDto.setSeed("100EFBEB29F458E06BF267EBB5CFCE768F9980317555E8C716B7CBE6C2BC07BE4983121D8DC0384AD6EF6ED4FC7C8EFDCB90509649AF3126A621368FA9073D12");
vdfPulseDto.setCipherSuite(0);
vdfPulseDto.setOriginEnum(OriginEnum.NIST);

// combinationService.run(getTimeStampFormated(ZonedDateTime.now()));
// }
SeedPostDto seedPostDto = new SeedPostDto("100EFBEB29F458E06BF267EBB5CFCE768F9980317555E8C716B7CBE6C2BC07BE4983121D8DC0384AD6EF6ED4FC7C8EFDCB90509649AF3126A621368FA9073D12",
"description",
"uri");

combinationService.run(getTimeStampFormated(ZonedDateTime.now()));

System.out.println("FIM");
}


// @Test
Expand Down

0 comments on commit 628bc21

Please sign in to comment.