input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
iterator_isEmptyAfterCreation ( ) { "<AssertPlaceHolder>" ; } iterator ( ) { final java . util . Iterator < java . lang . String > namesIterator = names . iterator ( ) ; final java . util . Iterator < com . eclipsesource . json . JsonValue > valuesIterator = values . iterator ( ) ; return new java . util . Iterator < c...
org . junit . Assert . assertFalse ( array . iterator ( ) . hasNext ( ) )
testMergeOf3Configurations ( ) { java . nio . file . Path schemaUrl = java . nio . file . Paths . get ( java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( "override/schema.json" ) . toURI ( ) ) ; org . kaaproject . kaa . server . common . core . schema . DataSchema configuraionSchema =...
org . junit . Assert . assertTrue ( mergeResultGenericRecord . equals ( expectedMergedConfiguraionGenericRecord ) )
testSeekAfterEOF ( ) { javax . imageio . stream . ImageInputStream stream = new com . twelvemonkeys . imageio . stream . SubImageInputStream ( createStream ( 7 ) , 5 ) ; stream . seek ( 6 ) ; "<AssertPlaceHolder>" ; } read ( ) { throw new java . lang . UnsupportedOperationException ( "Method<sp>read<sp>not<sp>implement...
org . junit . Assert . assertEquals ( ( - 1 ) , stream . read ( ) )
testRangeQueryInvalidTime1 ( ) { final org . eclipse . tracecompass . statesystem . core . ITmfStateSystem ss = org . eclipse . tracecompass . lttng2 . kernel . core . tests . analysis . kernel . statesystem . StateSystemTest . fixture ; "<AssertPlaceHolder>" ; try { int quark = ss . getQuarkAbsolute ( Attributes . CPU...
org . junit . Assert . assertNotNull ( ss )
testSorted ( ) { java . lang . Iterable < java . lang . Integer > iterable = tools . sorted ( java . util . stream . IntStream . range ( 0 , 1003 ) . boxed ( ) . sorted ( java . util . Comparator . reverseOrder ( ) ) . collect ( java . util . stream . Collectors . toList ( ) ) , Integer :: compare ) ; java . util . Lis...
org . junit . Assert . assertEquals ( 1003 , sorted . stream ( ) . distinct ( ) . count ( ) )
scheduleSQLFunction ( ) { final com . orientechnologies . orient . core . db . document . ODatabaseDocumentTx db = initDatabase ( ) ; try { createLogEvent ( db ) ; java . lang . Thread . sleep ( 2000 ) ; java . lang . Long count = getLogCounter ( db ) ; "<AssertPlaceHolder>" ; } finally { db . drop ( ) ; } } getLogCoun...
org . junit . Assert . assertTrue ( ( ( count >= 2 ) && ( count <= 3 ) ) )
listBatchJobsTest ( ) { getListBatchJobsData ( null ) ; "<AssertPlaceHolder>" ; } getListBatchJobsData ( java . lang . String ) { java . lang . String [ ] command = ( target == null ) ? new java . lang . String [ ] { "asadmin" , "list-batch-jobs" } : new java . lang . String [ ] { "asadmin" , "list-batch-jobs" , "--tar...
org . junit . Assert . assertTrue ( true )
testMissingParameter ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . stores . Create ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicApplicationAPICaller ( ) ; final java . util . Map < java . lang . String , java ....
org . junit . Assert . assertNotNull ( theResult )
testNoError ( ) { boolean result = checkNoError ( "Social_Communities_Rest_Get_My_Communities_XML" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
testErrorForCorrectSingle ( ) { T testValue = createValue ( ) ; net . sourceforge . pmd . properties . PropertyDescriptor < T > pmdProp = createProperty ( ) ; java . lang . String errorMsg = pmdProp . errorFor ( testValue ) ; "<AssertPlaceHolder>" ; } errorFor ( java . util . List ) { java . lang . String err ; for ( V...
org . junit . Assert . assertNull ( errorMsg , errorMsg )
isInActivePeriodWrongHourTest ( ) { final net . violet . platform . datamodel . Subscription theSubscription = new net . violet . platform . datamodel . mock . SubscriptionMock ( 0 , getMyFirstApplication ( ) , getKowalskyObject ( ) ) ; final net . violet . platform . datamodel . SubscriptionScheduling scheduling = new...
org . junit . Assert . assertFalse ( net . violet . platform . events . handlers . ZtampEventsHandler . isInActivePeriod ( theSettings ) )
testAddShoppingCartProduct ( ) { try { java . util . HashMap < java . lang . Integer , java . lang . Double > productIds = getTestRunMessageValue ( "productIds" ) ; java . lang . Integer shoppingCartId = getTestRunMessageValue ( "shoppingCartId" ) ; upsertOnTestRunMessage ( "quoteId" , shoppingCartId ) ; java . util . ...
org . junit . Assert . assertTrue ( result )
testSetBinlogPosition ( ) { com . zendesk . maxwell . schema . MysqlPositionStore store = buildStore ( ) ; long lastHeartbeatRead = 100L ; com . zendesk . maxwell . replication . BinlogPosition binlogPosition ; if ( com . zendesk . maxwell . schema . MaxwellTestSupport . inGtidMode ( ) ) { java . lang . String gtid = "...
org . junit . Assert . assertThat ( buildStore ( ) . get ( ) , org . hamcrest . CoreMatchers . is ( position ) )
createWithOneShouldCreateDefaultHttpClient ( ) { org . apache . http . impl . client . DefaultHttpClient expected = mock ( org . apache . http . impl . client . DefaultHttpClient . class ) ; org . apache . http . impl . conn . ProxySelectorRoutePlanner planner = mock ( org . apache . http . impl . conn . ProxySelectorR...
org . junit . Assert . assertSame ( expected , actual )
testEagerFetch ( ) { co . touchlab . squeaky . dao . Dao < co . touchlab . squeaky . field . ForeignFieldTest . Parent > parentDao = helper . getDao ( co . touchlab . squeaky . field . ForeignFieldTest . Parent . class ) ; co . touchlab . squeaky . field . ForeignFieldTest . Parent parent = new co . touchlab . squeaky ...
org . junit . Assert . assertTrue ( childEager . asdf . startsWith ( co . touchlab . squeaky . field . ForeignFieldTest . PREFIX ) )
onCreation_whenGreenplumVersionIsBelowSix_thenExecutionLocationIsNotSet ( ) { withGreenplumVersionLessThan6 ( ( ) -> { org . jkiss . dbeaver . ext . greenplum . model . GreenplumFunction function = new org . jkiss . dbeaver . ext . greenplum . model . GreenplumFunction ( mockSchema ) ; "<AssertPlaceHolder>" ; } ) ; } g...
org . junit . Assert . assertNull ( function . getExecutionLocation ( ) )
testWrongObjectType ( ) { net . ontopia . topicmaps . rest . model . Topic added = put ( new net . ontopia . topicmaps . rest . model . TopicName ( "foobar" ) , net . ontopia . topicmaps . rest . model . Topic . class ) ; "<AssertPlaceHolder>" ; } put ( java . lang . Object , java . lang . Class ) { return request ( nu...
org . junit . Assert . assertNotNull ( added )
testChanged ( ) { org . eclipse . swt . widgets . TreeItem item1 = new org . eclipse . swt . widgets . TreeItem ( tree , org . eclipse . swt . SWT . NONE ) ; item1 . setText ( "text" ) ; tree . changed ( tree . getChildren ( ) ) ; "<AssertPlaceHolder>" ; } hasPreferredWidthBuffer ( int ) { return ( getPreferredWidthBuf...
org . junit . Assert . assertFalse ( item1 . hasPreferredWidthBuffer ( 0 ) )
testExecutionFlowOperation ( ) { try ( org . nuxeo . ecm . automation . OperationContext ctx = new org . nuxeo . ecm . automation . OperationContext ( session ) ) { ctx . setInput ( src ) ; org . nuxeo . ecm . automation . OperationChain chain = new org . nuxeo . ecm . automation . OperationChain ( "testChain" ) ; chai...
org . junit . Assert . assertNotNull ( doc )
testJsonSerde ( ) { org . gbif . api . model . occurrence . Occurrence occ = new org . gbif . api . model . occurrence . Occurrence ( ) ; occ . setFamily ( "Plants<sp>family" ) ; occ . setFamilyKey ( 16 ) ; occ . setKingdom ( "Plants" ) ; occ . setKingdomKey ( 6 ) ; occ . setCoordinateUncertaintyInMeters ( 25.5 ) ; occ...
org . junit . Assert . assertEquals ( occ , occ2 )
sleepShouldHandleSpuriousWakeup ( ) { java . lang . Thread . currentThread ( ) . interrupt ( ) ; java . lang . Thread . interrupted ( ) ; long startNanos = java . lang . System . nanoTime ( ) ; long nanosToPark = TimeUnit . SECONDS . toNanos ( 1 ) ; BlockingStrategy . PARKING . park ( nanosToPark ) ; "<AssertPlaceHolde...
org . junit . Assert . assertTrue ( ( ( ( java . lang . System . nanoTime ( ) ) - startNanos ) >= nanosToPark ) )
testParseDateTime ( ) { java . text . SimpleDateFormat simpleDateFormat = new java . text . SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ssXXX" ) ; rfc3339timestamp = "2018-01-26T06:00:00+01:00" ; java . util . Date date = simpleDateFormat . parse ( rfc3339timestamp ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . Class )...
org . junit . Assert . assertNotNull ( date )
nameEqualAndSexEqual ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>name<sp>=<sp>'judekim'<sp>and<sp>sex<sp>=<sp>'male'<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>name<sp>=<sp>'judekim'<sp>and<sp>sex<sp>=<sp>'male'" ; org . apache . usergrid . query . validator ...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
testGetLicenseFromId_Null ( ) { com . google . cloud . compute . deprecated . LicenseId licenseId = com . google . cloud . compute . deprecated . LicenseId . of ( "project2" , "license2" ) ; org . easymock . EasyMock . expect ( computeRpcMock . getLicense ( licenseId . getProject ( ) , licenseId . getLicense ( ) , com ...
org . junit . Assert . assertNull ( compute . getLicense ( licenseId ) )
testGetCount ( ) { org . apache . flink . metrics . Counter c = new org . apache . flink . metrics . SimpleCounter ( ) ; c . inc ( 5 ) ; org . apache . flink . metrics . Meter m = new org . apache . flink . metrics . MeterView ( c , 60 ) ; "<AssertPlaceHolder>" ; } getCount ( ) { return count ; }
org . junit . Assert . assertEquals ( 5 , m . getCount ( ) )
testStaleWhenEndOfStream ( ) { final java . io . InputStream inStream = org . mockito . Mockito . mock ( java . io . InputStream . class ) ; org . mockito . Mockito . when ( socket . getInputStream ( ) ) . thenReturn ( inStream ) ; org . mockito . Mockito . when ( inStream . read ( org . mockito . ArgumentMatchers . < ...
org . junit . Assert . assertTrue ( conn . isStale ( ) )
normalizationTest ( ) { double [ ] uNormProbs = new double [ ] { 10.0 , 20.0 , 5.0 , 60.0 , 0.5 } ; double [ ] probs = uNormProbs . clone ( ) ; double sum = 0.0 ; for ( int i = 0 ; i < ( uNormProbs . length ) ; i ++ ) { sum += uNormProbs [ i ] ; } for ( int i = 0 ; i < ( probs . length ) ; i ++ ) { probs [ i ] = ( prob...
org . junit . Assert . assertTrue ( ( sigmas < 6 ) )
newNamespace_valid ( ) { java . lang . String myNamespace = "myNamespace" ; com . navercorp . pinpoint . bootstrap . plugin . request . util . NameSpaceChecker < com . navercorp . pinpoint . bootstrap . plugin . request . ServerRequestWrapper > myNamespaceChecker = newNameSpaceChecker ( myNamespace ) ; com . navercorp ...
org . junit . Assert . assertTrue ( myNamespaceChecker . checkNamespace ( serverRequestWrapper ) )
testMDLMolfiles ( ) { final java . lang . String DIRNAME = "murckoTest9.mol" 5 ; java . lang . String [ ] testFiles = new java . lang . String [ ] { "murckoTest7.mol" 2 , "murckoTest5.mol" 9 , "bug771485-1.mol" 6 , "bug771485-1.mol" 2 , "heptane-modelbuilder.mol" 4 , "bug771485-1.mol" 4 , "hydroxyamino.mol" 9 , "isopro...
org . junit . Assert . assertEquals ( "hydroxyamino.mol" 2 , tested , ( tested - failed ) )
testIsSerializable ( ) { org . eclipse . swt . widgets . Monitor monitor = display . getPrimaryMonitor ( ) ; org . eclipse . swt . graphics . Rectangle bounds = monitor . getBounds ( ) ; org . eclipse . swt . widgets . Monitor deserializedMonitor = serializeAndDeserialize ( monitor ) ; getDisplayAdapter ( deserializedM...
org . junit . Assert . assertEquals ( bounds , deserializedMonitor . getBounds ( ) )
testNewFileDoesntCreateFile ( ) { final java . io . File tmpFile = new java . io . File ( testDir , "fofooofodshfudhfwdjkfwf.dat" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( tmpFile . exists ( ) )
testIdempotentProcessId ( ) { java . lang . String a = io . netty . channel . DefaultChannelId . newInstance ( ) . asLongText ( ) . substring ( 17 , 21 ) ; java . lang . String b = io . netty . channel . DefaultChannelId . newInstance ( ) . asLongText ( ) . substring ( 17 , 21 ) ; "<AssertPlaceHolder>" ; } is ( io . ne...
org . junit . Assert . assertThat ( a , org . hamcrest . CoreMatchers . is ( b ) )
basicJMXConnectionTest ( ) { long start = java . lang . System . currentTimeMillis ( ) ; javax . management . MBeanServerConnection conn = getMBeanServerConnection ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "basicJMXConnectionTest<sp>total<sp>Time:<sp>" + ( ( java . lang . System . currentTimeMillis ( ) )...
org . junit . Assert . assertNotNull ( conn )
testTransformNoParameters ( ) { org . hawkular . apm . api . model . config . instrumentation . jvm . JVM ir = new org . hawkular . apm . api . model . config . instrumentation . jvm . JVM ( ) ; org . hawkular . apm . api . model . config . instrumentation . jvm . FreeFormAction im = new org . hawkular . apm . api . mo...
org . junit . Assert . assertEquals ( expected , transformed )
testAppendBytes_LeadingByteArrayZero ( ) { byte [ ] leadingByteArray = new byte [ ] { 0 , 0 } ; byte [ ] trailingByteArray = new byte [ ] { ( ( byte ) ( 1 ) ) , ( ( byte ) ( 2 ) ) } ; byte [ ] expectedArray = new byte [ ] { 0 , 0 , ( ( byte ) ( 1 ) ) , ( ( byte ) ( 2 ) ) } ; byte [ ] result = de . persosim . simulator ...
org . junit . Assert . assertArrayEquals ( expectedArray , result )
shouldFailWebSocketConnectionWhenServerSendPingFrameWithRsv1 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ( ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
testNAndFunction ( ) { items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem1" , OpenClosedType . OPEN ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem2" , OpenClosedType . ...
org . junit . Assert . assertEquals ( OpenClosedType . CLOSED , state )
ExtractSubjectFromMessageWhenPRPAIN201302UV02MessageNull ( ) { gov . hhs . fha . nhinc . transform . subdisc . HL7Extractors extractor = new gov . hhs . fha . nhinc . transform . subdisc . HL7Extractors ( ) ; org . hl7 . v3 . PRPAIN201302UV02 message = null ; org . hl7 . v3 . PRPAIN201302UV02MFMIMT700701UV01Subject1 su...
org . junit . Assert . assertNull ( subject1 )
testAsErrorNotKnownError ( ) { final java . util . List < com . allanbank . mongodb . bson . Document > docs = java . util . Collections . singletonList ( com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . build ( ) ) ; final com . allanbank . mongodb . client . message . Reply reply = new com . ...
org . junit . Assert . assertNull ( error )
testName ( ) { generalSettingsPresenter . pom = pom ; generalSettingsPresenter . setName ( "Name" ) ; "<AssertPlaceHolder>" ; verify ( generalSettingsPresenter ) . fireChangeEvent ( ) ; } getName ( ) { return org . kie . workbench . common . dmn . backend . editors . types . query . FindAllDmnAssetsQuery . NAME ; }
org . junit . Assert . assertEquals ( pom . getName ( ) , "Name" )
propertyDescriptorDoesNotExistInEarlierRevision ( ) { ch . puzzle . itc . mobiliar . business . property . entity . PropertyDescriptorEntity propertyDescriptor = auditReader . find ( ch . puzzle . itc . mobiliar . business . property . entity . PropertyDescriptorEntity . class , property . getId ( ) , revisionInBetween...
org . junit . Assert . assertNull ( propertyDescriptor )
testVerifyAggregationsMultiLevelMissingVal ( ) { java . util . List < org . apache . druid . query . aggregation . AggregatorFactory > aggFactories = java . util . Arrays . asList ( new org . apache . druid . query . aggregation . CountAggregatorFactory ( "count" ) , new org . apache . druid . query . aggregation . Dou...
org . junit . Assert . assertTrue ( exceptionOccured )
testGetStrongMessage ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final java . lang . String expectedErrorMessage = "*Expected<sp>strong<sp>message.*" ; fi...
org . junit . Assert . assertEquals ( expectedErrorMessage , actualErrorMessage )
shouldTestZipInputStream ( ) { when ( bufferedInputStream . read ( ) ) . thenReturn ( ( ( int ) ( 'P' ) ) ) . thenReturn ( ( ( int ) ( 'K' ) ) ) ; edu . stanford . bmir . protege . web . server . util . ZipInputStreamChecker checker = new edu . stanford . bmir . protege . web . server . util . ZipInputStreamChecker ( )...
org . junit . Assert . assertTrue ( checker . isZipInputStream ( bufferedInputStream ) )
testSeparableConv2D ( ) { int nOut = 2 ; int width = 8 ; int height = 8 ; int inputDepth = 3 ; org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; int [ ] ks = new int [ ] { 1 , 3 , 1 , 3 , 1 , 3 , 1 , 3 } ; int [ ] ss = new int [ ] { 1 , 1 , 2 , 2 , 1 , 1 , 2 , 2 } ; int [ ] ds = new int [ ] { 1...
org . junit . Assert . assertTrue ( msg , gradOK )
testGetCurrentTimeStamp ( ) { java . util . Date currentDate = new java . util . Date ( ) ; java . lang . Long dt = ( currentDate . getTime ( ) ) / 1000 ; java . lang . Long dt2 = com . onelogin . saml2 . util . Util . getCurrentTimeStamp ( ) ; "<AssertPlaceHolder>" ; } getCurrentTimeStamp ( ) { org . joda . time . Dat...
org . junit . Assert . assertTrue ( ( ( dt2 - dt ) <= 3 ) )
parseArguments_empty_key ( ) { java . util . Map < java . lang . String , java . lang . String > parsed = com . asakusafw . windgate . cli . CommandLineUtil . parseArguments ( "=world!" ) . getPairs ( ) ; java . util . Map < java . lang . String , java . lang . String > answer = new java . util . HashMap ( ) ; answer ....
org . junit . Assert . assertThat ( parsed , is ( answer ) )
isDefinedInContextWhereDefinedForTypeAndPropertyContextShouldReturnFalse ( ) { java . lang . Integer propertyContextId = 1 ; ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditProperty . Origin loadedFor = ResourceEditProperty . Origin . TYPE ; resourceEditProperty = new ch . puzzle . itc . mobil...
org . junit . Assert . assertFalse ( definedInContext )
testStream ( ) { org . apache . fop . pdf . PDFFilterList filters = stream . getFilterList ( ) ; filters . addFilter ( "null" ) ; byte [ ] bytes = createSampleData ( ) ; stream . setData ( bytes ) ; java . io . ByteArrayOutputStream actual = new java . io . ByteArrayOutputStream ( ) ; stream . outputRawStreamData ( act...
org . junit . Assert . assertArrayEquals ( bytes , actual . toByteArray ( ) )
convertLineString_WithRedundantSpaces_ShouldConvert ( ) { java . lang . String wkt = "LINESTRING<sp>(<sp>30<sp>10,<sp>10<sp>30<sp>,<sp>40<sp>40<sp>)" ; java . lang . String geoJson = org . nlpcn . es4sql . spatial . WktToGeoJsonConverter . toGeoJson ( wkt ) ; java . lang . String expectedGeoJson = "{\"type\":\"LineStri...
org . junit . Assert . assertEquals ( expectedGeoJson , geoJson )
testStepInto ( ) { org . eclipse . che . api . debug . shared . dto . action . StepIntoActionDto stepIntoAction = mock ( org . eclipse . che . api . debug . shared . dto . action . StepIntoActionDto . class ) ; doReturn ( promiseVoid ) . when ( service ) . stepInto ( org . eclipse . che . plugin . debugger . ide . debu...
org . junit . Assert . assertTrue ( debugger . isConnected ( ) )
nextParsedTokenN ( ) { victim = new org . sejda . sambox . input . ContentStreamCOSParser ( inMemorySeekableSourceFrom ( "q\nq\n27.27<sp>823.89<sp>540.738<sp>-783.57<sp>re\nW\nn\n540.73824<sp>0<sp>0<sp>783.569764<sp>27.268676<sp>40.32<sp>cm\n/a0<sp>gs\n/x5<sp>Do\nQ\nQ" . getBytes ( ) ) ) ; victim . position ( 38 ) ; "<...
org . junit . Assert . assertNull ( victim . nextParsedToken ( ) )
testFindFirstSourceProduct_IgnoreIndependent ( ) { org . esa . snap . core . datamodel . Product toBeClosedProduct = new org . esa . snap . core . datamodel . Product ( "ToBeClosed" , "Type" , 100 , 100 ) ; org . esa . snap . core . datamodel . Product dependingProduct = new org . esa . snap . core . datamodel . Produc...
org . junit . Assert . assertNull ( firstSourceProduct )
booleanIterator ( ) { com . gs . collections . api . iterator . BooleanIterator iterator = this . classUnderTest ( ) . booleanIterator ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return this . iterator . hasNext ( ) ; }
org . junit . Assert . assertFalse ( iterator . hasNext ( ) )
constructingWithOneArgShoudlBeTheSUTUri ( ) { java . lang . String uri = "http://localhost:9090" ; smartrics . rest . fitnesse . fixture . RestFixture f = new smartrics . rest . fitnesse . fixture . RestFixture ( uri ) ; "<AssertPlaceHolder>" ; } getBaseUrl ( ) { return restFixture . getBaseUrl ( ) ; }
org . junit . Assert . assertEquals ( uri , f . getBaseUrl ( ) )
testNullCoontact ( ) { com . ibm . ws . microprofile . openapi . impl . validation . ContactValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . ContactValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com . ibm . ws . mic...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
testRegisterOnceGetRegisteredContent ( ) { resourceManager . registerOnce ( "myfile" , createResourceLoader ( ) ) ; java . io . InputStream content = resourceManager . getRegisteredContent ( "myfile" ) ; content . close ( ) ; "<AssertPlaceHolder>" ; } close ( ) { shell . close ( ) ; }
org . junit . Assert . assertNotNull ( content )
testCompressed ( ) { byte [ ] actualBytes = captured . toByteArray ( ) ; byte [ ] expectedBytes = new byte [ ] { 66 , 90 , 104 , 57 , 49 , 65 , 89 , 38 , 83 , 89 , 118 , - 10 , - 77 , - 27 , 0 , 0 , 0 , - 63 , 0 , 0 , 16 , 1 , 0 , - 96 , 0 , 48 , - 52 , 12 , - 62 , 12 , 46 , - 28 , - 118 , 112 , - 95 , 32 , - 19 , - 19...
org . junit . Assert . assertArrayEquals ( expectedBytes , actualBytes )
testParseSpaces ( ) { org . apache . activemq . artemis . core . server . NetworkHealthCheck check = addCheck ( new org . apache . activemq . artemis . core . server . NetworkHealthCheck ( null , 100 , 100 ) ) ; check . parseAddressList ( "localhost,<sp>,<sp>127.0.0.2" ) ; "<AssertPlaceHolder>" ; } getAddresses ( ) { r...
org . junit . Assert . assertEquals ( 2 , check . getAddresses ( ) . size ( ) )
testCompareFullGenerationWith ( ) { org . apache . jackrabbit . oak . segment . file . tar . GCGeneration m = org . apache . jackrabbit . oak . segment . file . tar . GCGeneration . newGCGeneration ( 0 , 0 , false ) ; org . apache . jackrabbit . oak . segment . file . tar . GCGeneration n = org . apache . jackrabbit . ...
org . junit . Assert . assertEquals ( 3 , n . compareFullGenerationWith ( m ) )
testNullGender ( ) { com . github . irobson . jgenderize . model . NameGender name = new com . github . irobson . jgenderize . model . NameGender ( ) ; name . setGender ( "null" ) ; "<AssertPlaceHolder>" ; } getGenderType ( ) { if ( ( this . gender ) == null ) { return Gender . NULL ; } return com . github . irobson . ...
org . junit . Assert . assertEquals ( Gender . NULL , name . getGenderType ( ) )
setMeasurand_powerReactiveImport_measurandIsSet ( ) { java . lang . String measurand = "Power.Reactive.Import" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
assertGetAggregationDistinctColumnIndexBySumIndexWithException ( ) { int actual = distinctQueryMetaData . getAggregationDistinctColumnIndex ( 0 ) ; "<AssertPlaceHolder>" ; } getAggregationDistinctColumnIndex ( java . lang . String ) { for ( java . util . Map . Entry < java . lang . Integer , java . lang . String > entr...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( 2 ) )
testFindAll ( ) { org . oscarehr . common . model . CtlSpecialInstructions ctlSpecialInstructions1 = new org . oscarehr . common . model . CtlSpecialInstructions ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( ctlSpecialInstructions1 ) ; dao . persist ( ctlSpecialInst...
org . junit . Assert . assertTrue ( true )
getMostSevereReturnCode_onlyWarning ( ) { org . oscm . internal . components . response . Response response = new org . oscm . internal . components . response . Response ( ) ; response . getReturnCodes ( ) . add ( new org . oscm . internal . components . response . ReturnCode ( ReturnType . WARNING , "e1" ) ) ; org . ...
org . junit . Assert . assertThat ( returncode . getType ( ) , org . hamcrest . CoreMatchers . equalTo ( ReturnType . WARNING ) )
testAnnotateUnique ( ) { java . lang . String sampleId = catalogManager . getSampleManager ( ) . create ( studyFqn , new org . opencb . opencga . catalog . managers . Sample ( ) . setId ( "SAMPLE_1" ) , new org . opencb . commons . datastore . core . QueryOptions ( ) , sessionIdUser ) . first ( ) . getId ( ) ; org . op...
org . junit . Assert . assertEquals ( 1 , sampleQueryResult . first ( ) . getAnnotationSets ( ) . size ( ) )
getGetConfigured ( ) { final ch . cyberduck . core . editor . FSEventWatchEditorFactory f = new ch . cyberduck . core . editor . FSEventWatchEditorFactory ( new ch . cyberduck . core . local . LaunchServicesApplicationFinder ( ) ) ; final java . util . List < ch . cyberduck . core . local . Application > e = f . getCon...
org . junit . Assert . assertFalse ( e . isEmpty ( ) )
setBrokerRevenueShare ( ) { org . oscm . ui . model . Marketplace m = new org . oscm . ui . model . Marketplace ( ) ; m . setBrokerRevenueShare ( BigDecimal . TEN ) ; "<AssertPlaceHolder>" ; } getBrokerRevenueShare ( ) { org . oscm . ui . model . Marketplace m = new org . oscm . ui . model . Marketplace ( ) ; org . jun...
org . junit . Assert . assertEquals ( BigDecimal . TEN , m . getBrokerRevenueShare ( ) )
setKeyboardShortcut ( ) { java . lang . Object acceleratorKey = saveAsAction . getValue ( Action . ACCELERATOR_KEY ) ; pipe . actions . file . KeyStroke stroke = pipe . actions . file . KeyStroke . getKeyStroke ( "meta<sp>shift<sp>S" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( stroke , acceleratorKey )
testEmptyConfigurationString ( ) { java . lang . String configuration = "" ; io . strimzi . operator . cluster . model . AbstractConfiguration config = new io . strimzi . operator . cluster . model . TestConfigurationWithoutDefaults ( configuration ) ; "<AssertPlaceHolder>" ; } getConfiguration ( ) { return configurati...
org . junit . Assert . assertTrue ( config . getConfiguration ( ) . isEmpty ( ) )
getBindCount ( ) { "<AssertPlaceHolder>" ; } getBindCount ( ) { return 2 ; }
org . junit . Assert . assertEquals ( support . getBindCount ( ) , 1 )
concurrentInsertions ( ) { org . apache . bookkeeper . util . collections . ConcurrentOpenHashSet < java . lang . Long > set = new org . apache . bookkeeper . util . collections . ConcurrentOpenHashSet ( ) ; java . util . concurrent . ExecutorService executor = java . util . concurrent . Executors . newCachedThreadPool...
org . junit . Assert . assertEquals ( set . size ( ) , ( n * nThreads ) )
visitPermittedByAcl ( ) { org . batfish . datamodel . acl . PermittedByAcl permittedByAcl = new org . batfish . datamodel . acl . PermittedByAcl ( "foo" ) ; "<AssertPlaceHolder>" ; } identitySpecialize ( org . batfish . datamodel . acl . AclLineMatchExpr ) { return org . batfish . z3 . IpAccessListSpecializerTest . IDE...
org . junit . Assert . assertThat ( org . batfish . z3 . IpAccessListSpecializerTest . identitySpecialize ( permittedByAcl ) , org . hamcrest . Matchers . equalTo ( permittedByAcl ) )
botObjectPropertyDomain ( ) { it . unibz . inf . ontop . spec . ontology . impl . OntologyBuilder builder = it . unibz . inf . ontop . spec . ontology . impl . OntologyBuilderImpl . builder ( rdfFactory ) ; it . unibz . inf . ontop . spec . ontology . impl . OClass a = builder . declareClass ( "http://a" ) ; builder . ...
org . junit . Assert . assertEquals ( null , bot )
testToStringWithQuota ( ) { long length = 11111 ; long fileCount = 22222 ; long directoryCount = 33333 ; long quota = 44444 ; long spaceConsumed = 55555 ; long spaceQuota = 66665 ; org . apache . hadoop . fs . ContentSummary contentSummary = new org . apache . hadoop . fs . ContentSummary . Builder ( ) . length ( lengt...
org . junit . Assert . assertEquals ( expected , contentSummary . toString ( true ) )
intersectWithTripletValueThatDoesntExists ( ) { com . anjlab . sat3 . ITier tier = new com . anjlab . sat3 . SimpleTier ( 1 , 2 , 3 ) ; tier . add ( com . anjlab . sat3 . SimpleTripletValueFactory . _001_instance ) ; tier . intersect ( com . anjlab . sat3 . SimpleTripletValueFactory . _000_instance ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( 0 , tier . size ( ) )
barcode04Test ( ) { java . lang . String code = "0987654321" ; int expectedChecksum = 7 ; int checksum = com . itextpdf . barcodes . BarcodeMSI . getChecksum ( code ) ; "<AssertPlaceHolder>" ; } getChecksum ( java . lang . String ) { if ( text == null ) { throw new java . lang . IllegalArgumentException ( "Valid<sp>cod...
org . junit . Assert . assertEquals ( checksum , expectedChecksum )
testIsNotSuccess ( ) { final org . apache . flink . runtime . jobmaster . JobResult jobResult = new org . apache . flink . runtime . jobmaster . JobResult . Builder ( ) . jobId ( new org . apache . flink . api . common . JobID ( ) ) . serializedThrowable ( new org . apache . flink . util . SerializedThrowable ( new jav...
org . junit . Assert . assertThat ( jobResult . isSuccess ( ) , org . hamcrest . Matchers . equalTo ( false ) )
testSetGetUpdateServerPort ( ) { classUnderTest . setUpdateServerPort ( "8080" ) ; "<AssertPlaceHolder>" ; } getUpdateServerPort ( ) { return getUpdateSettings ( ) . getUpdateServerPort ( ) ; }
org . junit . Assert . assertEquals ( "8080" , classUnderTest . getUpdateServerPort ( ) )
testEvaluateCountTrue ( ) { java . util . Set < org . batfish . question . jsonpath . JsonPathResult . JsonPathResultEntry > results = org . batfish . question . jsonpath . JsonPathAssertionTest . computeResults ( "org/batfish/question/jsonpath/jsonPathAssertionTest.json" , "$.nodes..mtu" , true ) ; org . batfish . que...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
sampleTest ( ) { java . util . List < java . lang . Integer > data = java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 ) ; org . apache . spark . api . java . JavaRDD < java . lang . Integer > distData = sc . parallelize ( data ) ; class Sum implements java . io . Serializable , org . apache . spark . api . java . func...
org . junit . Assert . assertEquals ( 15 , totalLength )
testRandomVariableGradientBigSum ( ) { int numberOfIterations = ( ( int ) ( java . lang . Math . pow ( 10 , 3 ) ) ) ; net . finmath . montecarlo . automaticdifferentiation . RandomVariableDifferentiable sum = randomVariableFactory . createRandomVariable ( 0.0 ) ; for ( int i = 0 ; i < numberOfIterations ; i ++ ) { sum ...
org . junit . Assert . assertTrue ( analyticGradient [ i ] . equals ( aadGradient . get ( keys [ i ] ) ) )
testStartOnWindows ( ) { org . easymock . EasyMock . expect ( processManager . getPidFromPidFile ( ( ( serverHome ) + "/hqdb/data/postmaster.pid" ) ) ) . andReturn ( ( - 1L ) ) ; org . easymock . EasyMock . expect ( osInfo . getName ( ) ) . andReturn ( "Win32" ) ; org . easymock . EasyMock . expect ( processManager . e...
org . junit . Assert . assertTrue ( dbStarted )
mapStreamBlockingGetExceptionThrown ( ) { thrown . expect ( org . hamcrest . CoreMatchers . is ( exception ) ) ; org . mule . runtime . core . api . event . CoreEvent result ; try { result = reactor . core . publisher . Mono . just ( event ) . transform ( testProcessorThrowsException ) . block ( ) ; } catch ( java . la...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . nullValue ( ) ) )
testRegister_WithModifier ( ) { org . openscience . cdk . DynamicFactory factory = new org . openscience . cdk . DynamicFactory ( 5 ) ; org . openscience . cdk . interfaces . IAtom mock = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; org . openscience . cdk . DynamicFactory . CreationModifier modifier...
org . junit . Assert . assertNotNull ( factory . ofClass ( org . openscience . cdk . interfaces . IAtom . class ) )
testAssumeBefore ( ) { org . apache . lucene . util . junitcompat . TestReproduceMessage . type = SoreType . ASSUMPTION ; org . apache . lucene . util . junitcompat . TestReproduceMessage . where = SorePoint . BEFORE ; "<AssertPlaceHolder>" ; } runAndReturnSyserr ( ) { org . junit . runner . JUnitCore . runClasses ( or...
org . junit . Assert . assertTrue ( runAndReturnSyserr ( ) . isEmpty ( ) )
addandDeleteHistoricIdentityLinkForSingleTenant ( ) { startProcessInstanceForTenant ( org . camunda . bpm . engine . test . api . multitenancy . query . history . MultiTenancyHistoricIdentityLinkLogQueryTest . TENANT_1 ) ; org . camunda . bpm . engine . history . HistoricIdentityLinkLog historicIdentityLink = historySe...
org . junit . Assert . assertEquals ( query . tenantIdIn ( org . camunda . bpm . engine . test . api . multitenancy . query . history . MultiTenancyHistoricIdentityLinkLogQueryTest . TENANT_1 ) . count ( ) , 2 )
testFilterByParent ( ) { org . unitedinternet . cosmo . model . CollectionItem calendar1 = ( ( org . unitedinternet . cosmo . model . CollectionItem ) ( contentDao . findItemByUid ( org . unitedinternet . cosmo . dao . hibernate . HibernateItemDaoFilterTest . CALENDAR_UID_1 ) ) ) ; org . unitedinternet . cosmo . model ...
org . junit . Assert . assertEquals ( 8 , results . size ( ) )
testGetReposForNonExistentProject ( ) { javax . ws . rs . core . GenericType < java . util . List < java . lang . String > > type = new javax . ws . rs . core . GenericType < java . util . List < java . lang . String > > ( ) { } ; java . util . List < java . lang . String > repos = target ( "projects" ) . path ( "total...
org . junit . Assert . assertTrue ( repos . isEmpty ( ) )
illegalAssignable2 ( ) { "<AssertPlaceHolder>" ; } isAssignable ( java . lang . Class , java . lang . Class ) { if ( ( target == null ) || ( source == null ) ) { throw new java . lang . IllegalArgumentException ( "classes" ) ; } if ( ( target . isArray ( ) ) && ( source . isArray ( ) ) ) { return org . nohope . reflect...
org . junit . Assert . assertNull ( org . nohope . reflection . IntrospectionUtils . IntrospectionUtils . isAssignable ( int . class , null ) )
plControleGevondenPersoonOpschortRedenONok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . uti...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testWrapIfNeeded_AdempiereException_Boxed ( ) { final java . lang . Throwable rootEx = new org . adempiere . exceptions . AdempiereException ( ( "error-" + ( random . nextInt ( ) ) ) ) ; final java . lang . Throwable rootExBoxed = box ( rootEx , 10 ) ; final org . adempiere . exceptions . AdempiereException actual = or...
org . junit . Assert . assertSame ( rootEx , actual )
shouldReturnNullWhenValueIsNull ( ) { lookup . setFieldValue ( null ) ; com . qcadoo . model . api . Entity result = lookup . getEntity ( ) ; "<AssertPlaceHolder>" ; } getEntity ( ) { java . lang . Long entityId = getFieldValueWithoutSearching ( ) ; if ( entityId == null ) { return null ; } return getDataDefinition ( )...
org . junit . Assert . assertNull ( result )
testInitializationWithPluggableDeviceFrameworkEnabled2 ( ) { org . apache . hadoop . yarn . server . nodemanager . containermanager . resourceplugin . ResourcePluginManager rpm = new org . apache . hadoop . yarn . server . nodemanager . containermanager . resourceplugin . ResourcePluginManager ( ) ; org . apache . hado...
org . junit . Assert . assertTrue ( fail )
testFindByPrimaryKeyExisting ( ) { com . liferay . dynamic . data . mapping . model . DDMDataProviderInstance newDDMDataProviderInstance = addDDMDataProviderInstance ( ) ; com . liferay . dynamic . data . mapping . model . DDMDataProviderInstance existingDDMDataProviderInstance = _persistence . findByPrimaryKey ( newDD...
org . junit . Assert . assertEquals ( existingDDMDataProviderInstance , newDDMDataProviderInstance )
testGetErrorDetailsWithAuthenticatedTenant ( ) { java . lang . String externalTaskId = externalTaskService . fetchAndLock ( 5 , org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyExternalTaskCmdsTenantCheckTest . WORKER_ID ) . topic ( org . camunda . bpm . engine . test . api . multite...
org . junit . Assert . assertThat ( externalTaskService . getExternalTaskErrorDetails ( externalTaskId ) , org . hamcrest . CoreMatchers . is ( org . camunda . bpm . engine . test . api . multitenancy . tenantcheck . MultiTenancyExternalTaskCmdsTenantCheckTest . ERROR_DETAILS ) )
testResponseHeaderConverter ( ) { ch . qos . logback . access . pattern . ResponseHeaderConverter converter = new ch . qos . logback . access . pattern . ResponseHeaderConverter ( ) ; java . util . List < java . lang . String > optionList = new java . util . ArrayList < java . lang . String > ( ) ; optionList . add ( "...
org . junit . Assert . assertEquals ( request . getHeader ( "headerName1" ) , result )
testGetProcessInstanceVariableAbortedProcess ( ) { long processInstanceId = processService . startProcess ( deploymentUnit . getIdentifier ( ) , org . jbpm . kie . services . test . ProcessServiceImplPerProcessInstanceTest . PROCESS_ID_HUMAN_TASK ) ; "<AssertPlaceHolder>" ; processService . abortProcessInstance ( proce...
org . junit . Assert . assertNotNull ( processInstanceId )
testNotFlirtyUncomplemented ( ) { final com . iluwatar . servant . Queen queen = new com . iluwatar . servant . Queen ( ) ; queen . setFlirtiness ( false ) ; queen . changeMood ( ) ; "<AssertPlaceHolder>" ; } getMood ( ) { return isHappy ; }
org . junit . Assert . assertFalse ( queen . getMood ( ) )
loadModules_shouldNotCrashWhenFileIsNotFoundOrBroken ( ) { org . openmrs . module . ModuleFactory . unloadModule ( org . openmrs . module . ModuleFactory . getModuleById ( org . openmrs . module . ModuleFactoryTest . MODULE1 ) ) ; java . lang . String moduleLocation = org . openmrs . module . ModuleUtil . class . getCl...
org . junit . Assert . assertEquals ( 0 , org . openmrs . module . ModuleFactory . getLoadedModules ( ) . size ( ) )