안녕하세요. 강의를 들으며 몇 가지 궁금한 점이 있어 질문 드립니다. 1. 선을 그리고 변형을 통해 키우거나 줄이면 선 두께도 바뀌던데 두께가 변경되지 않는 기능은 없나요? 다른 툴에서는 변경되거나 되지 않도록 선택하는 기능이 있듯이요. 원하는 두께로 그렸는데 변형시 선 두께가 달라지니 난감할 거 같아요 ㅜ 2.선을 그리며 드로잉 하다보니, 선 두께가 좀 더 두꺼웠음 좋겠다 생각이 들어서 선 두께를 변경하고 싶다면, 선을 그리고 난 후 두께 변경이 가능한 옵션 기능이 있나요? 비트맵이면 모를까, 일러스트레이터나 클립스튜디오에선 기능이 있으니, 있지 않을까 싶어서요. 3. 선을 그리고 변형시, 클립스튜디오에 있는 메쉬 변형(여러개의 변형 포인트가 있는?) 같은 기능이 있나요?
테스트 관련 강의를 보다가 OutputCapture를 테스트 해보려고헀는데 하기와 같은 에러가 발생해서 질문드리고싶습니다.. Test Source package me.survivalking.spring_test ; import me.survivalking.spring_test.sample.SampleController ; import me.survivalking.spring_test.sample.SampleService ; import org.junit. Rule ; import org.junit.jupiter.api. Test ; import org.junit.jupiter.api.extension. ExtendWith ; import org.junit.runner. RunWith ; import org.springframework.beans.factory.annotation. Autowired ; import org.springframework.boot.test.autoconfigure.web.reactive. AutoConfigureWebTestClient ; import org.springframework.boot.test.autoconfigure.web.servlet. AutoConfigureMockMvc ; import org.springframework.boot.test.context. SpringBootTest ; import org.springframework.boot.test.mock.mockito. MockBean ; import org.springframework.boot.test.system.OutputCaptureRule ; import org.springframework.boot.test.web.client.TestRestTemplate ; import org.springframework.test.context.junit.jupiter.SpringExtension ; import org.springframework.test.context.junit4.SpringRunner ; import org.springframework.test.web.reactive.server.WebTestClient ; import org.springframework.test.web.servlet.MockMvc ; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders ; import static org.assertj.core.api.Assertions. assertThat ; import static org.mockito.Mockito. when ; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers. print ; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. content ; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. status ; @RunWith (SpringRunner. class ) @SpringBootTest (webEnvironment = SpringBootTest .WebEnvironment. RANDOM_PORT ) @AutoConfigureMockMvc @AutoConfigureWebTestClient class SpringTestApplicationTests { // WebEnvironment 이 Mock 일 떄 사용 @Autowired private MockMvc mockMvc ; @Autowired private TestRestTemplate testRestTemplate ; //Controller 단만 가서 확인하고 싶다 @MockBean SampleService sampleService ; // 위에 것들은 Sync 방식 WebClient 는 Async 응답이 오면 Callback 이 옴 나머지는 기다림 @Autowired WebTestClient webTestClient ; @Rule public OutputCaptureRule outputCapture = new OutputCaptureRule() ; //@Test public void contextLoads () throws Exception{ mockMvc .perform(MockMvcRequestBuilders. get ( "/hello" )) .andExpect( status ().isOk()) .andExpect( content ().string( "hello heesuk" )) .andDo( print ()) ; } //@Test public void Test2 () throws Exception{ String result = testRestTemplate .getForObject( "/hello" , String. class ) ; assertThat (result).isEqualTo( "hello heesuk" ) ; } //@Test public void Test3 () throws Exception{ when ( sampleService .getName()).thenReturn( "heesuk" ) ; String result = testRestTemplate .getForObject( "/hello" , String. class ) ; assertThat (result).isEqualTo( "hello heesuk" ) ; } @Test public void Test4 () throws Exception{ when ( sampleService .getName()).thenReturn( "heesuk" ) ; webTestClient .get().uri( "/hello" ).exchange() .expectStatus().isOk() .expectBody(String. class ).isEqualTo( "hello heesuk" ) ; assertThat ( outputCapture .toString()) .contains( "holoman" ) .contains( "skip" ) ; } } OutputCapture가 - 표시가 되어있어서 OutputCaptureRule을 사용헀더니 하기와 같은 에러가 나옵니다. Connected to the target VM, address: '127.0.0.1:13028', transport: 'socket' 21:50:12.485 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] 21:50:12.510 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] 21:50:12.557 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [me.survivalking.spring_test.SpringTestApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 21:50:12.572 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [me.survivalking.spring_test.SpringTestApplicationTests], using SpringBootContextLoader 21:50:12.577 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [me.survivalking.spring_test.SpringTestApplicationTests]: class path resource [me/survivalking/spring_test/SpringTestApplicationTests-context.xml] does not exist 21:50:12.578 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [me.survivalking.spring_test.SpringTestApplicationTests]: class path resource [me/survivalking/spring_test/SpringTestApplicationTestsContext.groovy] does not exist 21:50:12.578 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [me.survivalking.spring_test.SpringTestApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. 21:50:12.579 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [me.survivalking.spring_test.SpringTestApplicationTests]: SpringTestApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 21:50:12.662 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [me.survivalking.spring_test.SpringTestApplicationTests] 21:50:12.758 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\Spring_Pjt\IntelliJ_WorkSpace\spring_test\target\classes\me\survivalking\spring_test\SpringTestApplication.class] 21:50:12.760 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration me.survivalking.spring_test.SpringTestApplication for test class me.survivalking.spring_test.SpringTestApplicationTests 21:50:12.863 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [me.survivalking.spring_test.SpringTestApplicationTests]: using defaults. 21:50:12.864 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 21:50:12.877 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource] 21:50:12.877 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute] 21:50:12.878 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@cb191ca, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@42f48531, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@a776e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@792bbc74, org.springframework.test.context.support.DirtiesContextTestExecutionListener@79145d5a, org.springframework.test.context.event.EventPublishingTestExecutionListener@1f2f9244, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4c4d27c8, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6821ea29, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@338494fa, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@505a9d7c, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@758c83d8, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@129b4fe2] 21:50:12.884 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@e077866 testClass = SpringTestApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@ed3068a testClass = SpringTestApplicationTests, locations = '{}', classes = '{class me.survivalking.spring_test.SpringTestApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=0}', contextCustomizers = set[[ImportsContextCustomizer@7c2b6087 key = [org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityConfiguration, org.springframework.boot.autoconfigure.security.oauth2.client.reactive.ReactiveOAuth2ClientAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.resource.reactive.ReactiveOAuth2ResourceServerAutoConfiguration, org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5026735c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@10f7f7de, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@383e320a, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@488d1cd7, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@d278d2b, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@6e005dc9, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@3794467c, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@82ea68c, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@eb21112], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> false]], class annotated with @DirtiesContext [false] with mode [null]. 21:50:12.926 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=0} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.4.0) 2020-12-10 21:50:13.200 INFO 6952 --- [ main] m.s.s.SpringTestApplicationTests : Starting SpringTestApplicationTests using Java 1.8.0_261 on DESKTOP-4OCTHFN with PID 6952 (started by uesr in D:\Spring_Pjt\IntelliJ_WorkSpace\spring_test) 2020-12-10 21:50:13.206 INFO 6952 --- [ main] m.s.s.SpringTestApplicationTests : No active profile set, falling back to default profiles: default 2020-12-10 21:50:14.743 INFO 6952 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 0 (http) 2020-12-10 21:50:14.754 INFO 6952 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2020-12-10 21:50:14.755 INFO 6952 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.39] 2020-12-10 21:50:14.864 INFO 6952 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2020-12-10 21:50:14.864 INFO 6952 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1637 ms 2020-12-10 21:50:15.282 INFO 6952 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-12-10 21:50:15.666 INFO 6952 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring TestDispatcherServlet '' 2020-12-10 21:50:15.666 INFO 6952 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet '' 2020-12-10 21:50:15.667 INFO 6952 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms 2020-12-10 21:50:15.730 INFO 6952 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 13033 (http) with context path '' 2020-12-10 21:50:15.740 INFO 6952 --- [ main] m.s.s.SpringTestApplicationTests : Started SpringTestApplicationTests in 2.811 seconds (JVM running for 4.224) 2020-12-10 21:50:16.576 INFO 6952 --- [o-auto-1-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2020-12-10 21:50:16.577 INFO 6952 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2020-12-10 21:50:16.577 INFO 6952 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms 2020-12-10 21:50:16.594 INFO 6952 --- [o-auto-1-exec-1] m.s.spring_test.sample.SampleController : holoman skip java.lang.IllegalStateException: No system captures found. Please check your output capture registration. at org.springframework.util.Assert.state(Assert.java:76) at org.springframework.boot.test.system.OutputCapture.get(OutputCapture.java:129) at org.springframework.boot.test.system.OutputCapture.getAll(OutputCapture.java:100) at org.springframework.boot.test.system.OutputCapture.toString(OutputCapture.java:90) at org.springframework.boot.test.system.OutputCaptureRule.toString(OutputCaptureRule.java:101) at me.survivalking.spring_test.SpringTestApplicationTests.Test4(SpringTestApplicationTests.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.util.ArrayList.forEach(ArrayList.java:1259) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at java.util.ArrayList.forEach(ArrayList.java:1259) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:75) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53) 2020-12-10 21:50:18.898 INFO 6952 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' Disconnected from the target VM, address: '127.0.0.1:13028', transport: 'socket' Process finished with exit code -1 어떤부분이 잘못되었거나.. 잘못사용됬을까요.. 궁금합니다.
#include<stdio.h> int main(){ int arr[9],i,j,k,tmp; for(i=0;i<=8;i++){ scanf("%d",&arr[i]);} scanf("%d",&k); for(i=1;i<=k;i++){ tmp=arr[0]; for(j=0;j<8;j++){ arr[j]=arr[j+1];} arr[j]=tmp; } for(i=0;i<=8;i++){ printf("%d ",arr[i]);} return 0;} 의 식과 #include<stdio.h> int main(){ int arr[9],i,j,k; for(i=0;i<=8;i++){ scanf("%d",&arr[i]);} scanf("%d",&k); for(i=1;i<=k;i++){ for(j=0;j<8;j++){ arr[j]=arr[j+1];} arr[j]=arr[0]; } for(i=0;i<=8;i++){ printf("%d ",arr[i]);} return 0;}의 식이 왜 출력값이 다르게 나오는지 궁금합니다.. 즉,왜 곧바로 arr[j]==arr[0]로 하면 나오는 출력값과 tmp를 만들어 tmp=arr[0]으로 잡고 arr[j]=tmp로 나오는 출력값이 다른지 궁금합니다
선생님~! 해당 싱글톤 주의할점에서 싱글톤은 무상태로 유지해야한다고 하셨습니다. 때문에 강의에서 지역변수 userAprice 와 userBprice를 만들어서 처음에 입력된 userAprice에 입력된 값이 출력되도록 변경하셨는데, 이게 현재 user가 2명이어서 괜찮았지만 만약에 정말 1초마다 5만명씩 유저가 가격을 입력한다면, 지역변수를 순간적으로 5만개씩 만들어서 처리하는 건지, 아니면 다른 방법으로 해당 사항을 해결하는 건지 궁금합니다 !! (공유객체의 참조와 지역변수의 관계에 대하여 조금이해가 않되서 질문드립니다. ㅠㅠ)
for ( var i = 0 , ii = markerList . length ; i < ii ; i ++) { naver . maps . Event . addListener ( markerList [ i ], "click" , getClickHandler ( i )); //마커 클릭시 함수 호출 naver . maps . Event . addListener ( map , "click" , ClickMap ( i )); } function clickMap ( i ) { return function () { var infowindow = infowindowList [ i ]; infowindow . close () } }
구글 클라우드 플랫폼 VM만들기 질문입니다. 1. google cloud platform에서 유료계정으로 전환하고 2. GPUs (all regions)의 할당량을 0 --> 1로 전환 (구글메일발송, 답신) 3. VM 인트턴스 만들기를 진행하는데 4. us-west1(오리건), 4 core CPU 설정 5. 그런데 그 아래의 +GPU 버튼이 활성화 되지 않습니다. 무엇인 문제일까요?
안녕하세요 all() 과 any() 파트에서 숙제로 말씀하셨던 # 왜 결과가 False일지 생각해보세요 (df['순이익률(%)'] > -1000000).all() 이부분에 대해서 문의드리고자 합니다. min(df['순이익률(%)']) 을 통해서 봤을때 값이 -193.426 였고 df[df['순이익률(%)'] <= -1000000] 를 통해서 찾아봐도 더 작거나 같은 값이 없던데 왜 False 라는 결과가 나오는지 문의드립니다. --------------------------------------추후 생각 났던게 nan 값이 있을것 같아서 실행해 보았고 nan 이 문제 였던거 같습니다 a1 = df[~df['순이익률(%)'].isna()] (a1['순이익률(%)']>-1000000).all() nan 값을 제거하고 동일하게 실행하였을때 True 를 확인하였습니다.
지난 11월 23일 납땜 건으로 방문했던 학생입니다. 패턴 납땜 해주신 이후 순조롭게 진행하다. 7-4강을 진행하던 중 UART debug 채널이 빠르게 연결과 끊어짐이 3~4번 반복 후 작동을 멈추었습니다. 황급히 전원을 빼고 기기를 찾던 중 12V 입력 쪽에 연결 되있던 선이 한가닥으로 간신히 버티고 있는 것을 확인하였고 문제가 된 선을 제거한후 ESC에서 잘라낸 선으로 다시 재 납땜을 진행하였습니다. 하지만 이후 UART 채널은 여전히 출력을 하지 못한것을 확인한 후 FTDI 문제라 생각하여 여분의 FTDI를 연결하였으나 역시 MCU에서 보낸 데이터를 받지 못하였습니다. 이전 코드들도 Calibration 까지 비프음으로 정상 작동을 확인하였으나 여전히 UART Debug 채널에 대한 출력을 받지 못하고 있습니다. 또 이전과 다르게 stm32f405rgt 코어에 발열이 매우 크게 느껴집니다. 문제를 어찌 해결할까요...
선생님 덕분에 만들어볼 수 있을정도로 올수있었습니다 감사합니다ㅠㅠㅠ 현재 연습용으로 만들어보다가 안되는건 대충 구글검색으로 해결 가능한데, 이 버그같은(?) 문제는 어떤 키워드로 검색해야할지... 혹은 원래 이런현상이 있는거라서 flex레이아웃을 안쓰는건지.. 궁금해서요ㅠㅠㅠㅠ 핑크 네모박스들이 전체창이 줄어들때 부모격한테 flex-wrap: wrap;을 줘서 줄어들때 같이 줄어드는데, 근데 문제가 통통튀기듯이 아래로 내려갔다가 다시 자기자리로 오는게 너무 보기 싫어서 해결하고 싶은데 해결방법을 어떻게 해야할지 모르겠어서요 혹시 선생님 이런문제 보신적 있으실까요..? 혹시 영어로 어떤 키워드를 검색하면 나올지 대략 감이 오실까요ㅠㅠㅠ? 아래↓는 핑크 네모박스들의 엄마에게 준 css코드입니다! https://youtu.be/NgiRnScmjK8 (동영상 첨부를 할줄몰라서 유튜브에 올려 링크가져왔습니다ㅠㅠ) 죄송하구 감사합니다 선생님ㅠㅠㅠ
안녕하세요 보일러 플레이트 강의에 이어서 양질의 강의 올려주셔서 감사드립니다. 다름이 아니라 이미지를 로컬 폴더에 저장하는 /api/product/image 부분에서 등록 완료 후 Path,name을 json으로 프론트에 리턴해서 보내주는 과정에서 res.req.file 이 부분은 왜 이렇게 쓸까요? 단순 res.file이라고 하면 오류가 나오더라구요. 강의 잘 보고있습니다