input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testMainNoConfig ( ) { java . lang . System . setProperty ( "config" , "config.properties" ) ; final java . lang . String [ ] args = new java . lang . String [ ] { } ; nl . moderniseringgba . migratie . controle . runtime . Main . setSpringConfig ( "classpath:controle-beans-test.xml" ) ; try { nl . moderniseringgba . m...
org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalArgumentException ) )
testputandget ( ) { geodeStore . put ( "test4_abc" , "123" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { java . lang . Object primaryVal = primary . get ( key ) ; if ( primaryVal != null ) { if ( primaryVal == ( org . apache . apex . malhar . contrib . enrich . NullValuesCacheManager . NULL ) ) { return ...
org . junit . Assert . assertEquals ( "123" , geodeStore . get ( "test4_abc" ) )
shouldConsumeMultipleTokensWithAnyValueConstant ( ) { makeCaseInsensitive ( ) ; tokens . consume ( "SELECT" , "ALL" , TokenStream . ANY_VALUE ) ; tokens . consume ( "FROM" , "THIS" , "TABLE" ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( index ) < ( size ) ; }
org . junit . Assert . assertThat ( tokens . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
testCount ( ) { org . apache . uima . collection . CollectionReader cr = ch . epfl . bbp . uima . cr . PubmedCentralCollectionReader . getCR ( "pmc_test_archive" ) ; int i = 0 ; while ( cr . hasNext ( ) ) { org . apache . uima . cas . CAS cas = org . apache . uima . util . CasCreationUtils . createCas ( cr . getProcess...
org . junit . Assert . assertEquals ( 6 , i )
sendHasCorrectHttpsMethod ( ) { final com . microsoft . azure . sdk . iot . service . transport . http . HttpMethod expectedMethod = com . microsoft . azure . sdk . iot . service . transport . http . HttpMethod . GET ; final byte [ ] body = new byte [ 0 ] ; new tests . unit . com . microsoft . azure . sdk . iot . servi...
org . junit . Assert . assertThat ( testMethod , org . hamcrest . CoreMatchers . is ( expectedMethod ) )
testProcessImgTagWithAttributesAndSimpleImageURL ( ) { com . liferay . document . library . document . conversion . internal . DocumentHTMLProcessor documentHTMLProcessor = new com . liferay . document . library . document . conversion . internal . DocumentHTMLProcessor ( ) ; java . lang . String originalHTML = com . l...
org . junit . Assert . assertEquals ( expectedHTML , processedHTML )
testEncryptionPlusSig ( ) { wsIn . setProperty ( ConfigurationConstants . ACTION , ( ( ( org . apache . wss4j . common . ConfigurationConstants . ENCRYPT ) + "<sp>" ) + ( org . apache . wss4j . common . ConfigurationConstants . SIGNATURE ) ) ) ; wsOut . setProperty ( ConfigurationConstants . ACTION , ( ( ( org . apache...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testPatchRemovesParentLink ( ) { com . vmware . admiral . compute . container . network . ContainerNetworkDescriptionService . ContainerNetworkDescription containerNetworkDescription = createContainerNetworkDescription ( ) ; containerNetworkDescription . parentDescriptionLink = "parent" ; containerNetworkDescription = ...
org . junit . Assert . assertEquals ( null , patch . parentDescriptionLink )
testInstantaitionOfPackagePrivateClass ( ) { hu . elte . txtuml . utils . InstanceCreatorTests . PackagePrivateTestClass inst = hu . elte . txtuml . utils . InstanceCreator . create ( hu . elte . txtuml . utils . InstanceCreatorTests . PackagePrivateTestClass . class ) ; "<AssertPlaceHolder>" ; } create ( java . lang ....
org . junit . Assert . assertTrue ( ( inst != null ) )
testFormat ( ) { final java . lang . String p = com . sun . mail . util . logging . CompactFormatter . class . getName ( ) ; com . sun . mail . util . logging . Properties props = new com . sun . mail . util . logging . Properties ( ) ; props . put ( p . concat ( ".format" ) , "%9$s" ) ; java . util . logging . LogMana...
org . junit . Assert . assertEquals ( java . lang . String . valueOf ( ( ( int ) ( Short . MAX_VALUE ) ) ) , result )
testEmpty ( ) { net . hydromatic . optiq . test . OptiqAssert . that ( ) . with ( OptiqAssert . Config . JDBC_FOODMART ) . doWithConnection ( new net . hydromatic . linq4j . function . Function1 < net . hydromatic . optiq . jdbc . OptiqConnection , java . lang . Object > ( ) { public java . lang . Object apply ( net . ...
org . junit . Assert . assertFalse ( rset . next ( ) )
testCorrectedReceivedAgeIsApparentAgeIfLarger ( ) { final org . apache . hc . core5 . http . Header [ ] headers = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "Age" , "6" ) } ; final org . apache . hc . client5 . http . cache . HttpCacheEntry entry =...
org . junit . Assert . assertEquals ( 10 , impl . getCorrectedReceivedAgeSecs ( entry ) )
testAdministratorRolePermissionFilter ( ) { _user = com . liferay . portal . kernel . test . util . UserTestUtil . addOmniAdminUser ( ) ; com . liferay . portal . kernel . security . permission . PermissionThreadLocal . setPermissionChecker ( com . liferay . portal . kernel . security . permission . PermissionCheckerFa...
org . junit . Assert . assertFalse ( booleanFilter . hasClauses ( ) )
testRegexText3 ( ) { java . lang . String query = "([a-zA-Z])+o[a-z]a[a-z]o" ; java . util . List < edu . uci . ics . texera . api . tuple . Tuple > exactResults = edu . uci . ics . texera . dataflow . regexmatcher . RegexMatcherTestHelper . getQueryResults ( edu . uci . ics . texera . dataflow . regexmatcher . RegexMa...
org . junit . Assert . assertTrue ( edu . uci . ics . texera . api . utils . TestUtils . equals ( expectedResults , exactResults ) )
removeStyleAttribute ( ) { com . vaadin . flow . dom . Element element = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; com . vaadin . flow . dom . Style style = element . getStyle ( ) ; style . set ( "border" , "1px<sp>solid<sp>green" ) ; element . removeAttribute ( "style" ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( 0 , style . getNames ( ) . count ( ) )
shouldGetAssignmentsWithoutHours ( ) { java . util . List < net . rrm . ehour . persistence . report . dao . ProjectAssignment > assignments = reportAggregatedDAO . getAssignmentsWithoutBookings ( net . rrm . ehour . persistence . report . dao . ReportAggregatedDaoHibernateImplTest . OCT_1_TO_4 ) ; java . util . List <...
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 3 , 6 , 10 } , assignmentIds . toArray ( ) )
isOnlyNameChanged_True ( ) { org . oscm . internal . vo . VOTriggerDefinition voTriggerDefinition = new org . oscm . internal . vo . VOTriggerDefinition ( ) ; voTriggerDefinition . setName ( "name1" ) ; voTriggerDefinition . setTarget ( "target" ) ; voTriggerDefinition . setTargetType ( TriggerTargetType . WEB_SERVICE ...
org . junit . Assert . assertTrue ( result )
getToClass ( ) { "<AssertPlaceHolder>" ; } getToClass ( ) { org . junit . Assert . assertSame ( org . eclipse . collections . impl . block . factory . Integer . class , org . eclipse . collections . impl . block . factory . Functions . getToClass ( ) . valueOf ( 0 ) ) ; }
org . junit . Assert . assertSame ( org . eclipse . collections . impl . block . factory . Integer . class , org . eclipse . collections . impl . block . factory . Functions . getToClass ( ) . valueOf ( 0 ) )
multiplyQuantityTest ( ) { tec . uom . se . quantity . ShortQuantity < javax . measure . quantity . ElectricResistance > quantity1 = new tec . uom . se . quantity . ShortQuantity ( java . lang . Short . valueOf ( "3" ) . shortValue ( ) , tec . uom . se . unit . Units . OHM ) ; tec . uom . se . quantity . ShortQuantity ...
org . junit . Assert . assertEquals ( 6 , result . getValue ( ) )
testBizDataObject ( ) { org . foxbpm . engine . impl . identity . Authentication . setAuthenticatedUserId ( "admin" ) ; org . foxbpm . engine . impl . task . command . ExpandTaskCommand expandTaskCommand = new org . foxbpm . engine . impl . task . command . ExpandTaskCommand ( ) ; expandTaskCommand . setProcessDefiniti...
org . junit . Assert . assertEquals ( "admin" , variableInstance . getValueObject ( ) )
testLeafRefRelativeAndAbsoluteWithSameTarget ( ) { final org . opendaylight . yangtools . yang . model . api . TypeDefinition < ? > targetNodeForAbsname = getTargetNodeForLeafRef ( "absname" , org . opendaylight . yangtools . yang . model . api . type . InstanceIdentifierTypeDefinition . class ) ; final org . opendayli...
org . junit . Assert . assertEquals ( targetNodeForAbsname , targetNodeForRelname )
testSuccess ( ) { runner . forBenchmark ( com . google . caliper . runner . instrument . ArbitraryMeasurmentInstrumentTest . TestBenchmark . class ) . instrument ( "arbitrary" ) . run ( ) ; com . google . caliper . model . Measurement measurement = com . google . common . collect . Iterables . getOnlyElement ( com . go...
org . junit . Assert . assertEquals ( expected , measurement )
serverErrorMessage ( ) { expected . expect ( com . airhacks . rulz . jaxrsclient . AssertionError . class ) ; expected . expectMessage ( org . hamcrest . CoreMatchers . containsString ( "Internal<sp>server<sp>error(500)" ) ) ; expected . expectMessage ( org . hamcrest . CoreMatchers . containsString ( "OK<sp>200<sp>ret...
org . junit . Assert . assertThat ( response , org . hamcrest . CoreMatchers . is ( com . airhacks . rulz . jaxrsclient . HttpMatchers . serverError ( ) ) )
testSimpleSerializationDeserialization ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key1" , "val1" ) ; map . put ( "key2" , "5" ) ; map . put ( "key3" , "10" ) ; map . put ( "key4" , "1.0" ) ; m...
org . junit . Assert . assertEquals ( map , actualMap )
testRollOneDice ( ) { java . util . Random random = org . mockito . Mockito . mock ( java . util . Random . class ) ; org . mockito . Mockito . when ( random . nextInt ( 6 ) ) . thenReturn ( 3 ) ; dice . setRandom ( random ) ; int result = dice . roll ( 6 ) ; "<AssertPlaceHolder>" ; } roll ( int ) { return ( random . n...
org . junit . Assert . assertEquals ( 4 , result )
committed_quiet ( ) { add ( "root" , "/" ) ; addTransaction ( "testing" , true ) ; java . io . File stage = useStageDir ( "testing" , "root" ) ; java . io . File file = touch ( stage , "a.txt" ) ; invoke ( "transaction" , "abort" , "testing" , "--quiet" ) ; "<AssertPlaceHolder>" ; } exists ( ) { return new org . hamcre...
org . junit . Assert . assertThat ( file , exists ( ) )
testCreate ( ) { java . util . Optional < com . gh . mygreen . xlsmapper . fieldaccessor . MapLabelSetter > labelSetter = setterFactory . create ( com . gh . mygreen . xlsmapper . fieldaccessor . MapLabelSetterFactoryTest . NotLabel . SampleRecord . class , "test" ) ; "<AssertPlaceHolder>" . isEmpty ( ) ; } create ( ja...
org . junit . Assert . assertThat ( labelSetter )
getNumDimensions ( ) { cn . edu . hit . ir . JNN . Dim dim = new cn . edu . hit . ir . JNN . Dim ( java . util . Arrays . asList ( 100 , 200 ) , 1 ) ; "<AssertPlaceHolder>" ; } getNumDimensions ( ) { return nd ; }
org . junit . Assert . assertEquals ( dim . getNumDimensions ( ) , 2 )
applyDefaultAddsOutputDirectoryWhenAbsent ( ) { com . github . timm . cucumber . generate . Plugin plugin = new com . github . timm . cucumber . generate . Plugin ( ) ; plugin . setName ( "path.to.my.XmlFormatter" ) ; plugin . applyDefaults ( new java . io . File ( "path/to/output" ) ) ; "<AssertPlaceHolder>" ; } getOu...
org . junit . Assert . assertThat ( plugin . getOutputDirectory ( ) , org . hamcrest . CoreMatchers . equalTo ( new java . io . File ( "path/to/output" ) ) )
testEmpty ( ) { com . taobao . tddl . executor . repo . RepositoryHolder repoHolder = new com . taobao . tddl . executor . repo . RepositoryHolder ( ) ; com . taobao . tddl . optimizer . config . table . StaticSchemaManager sm = new com . taobao . tddl . optimizer . config . table . StaticSchemaManager ( "test_schema.x...
org . junit . Assert . assertArrayEquals ( expected , actual . toArray ( ) )
handleMessageNotRequestor ( ) { org . talend . esb . security . saml . STSRESTOutInterceptor i = new org . talend . esb . security . saml . STSRESTOutInterceptor ( ) ; org . apache . cxf . message . Message message = createMock ( org . apache . cxf . message . Message . class ) ; message . get ( Message . REQUESTOR_ROL...
org . junit . Assert . assertSame ( stsClient , i . getStsClient ( ) )
testGetDeploymentInfoForDeployedDriver ( ) { deployDriver ( driverDef1 ) ; org . kie . workbench . common . screens . datasource . management . model . DriverDeploymentInfo deploymentInfo = driverProvider . getDeploymentInfo ( org . kie . workbench . common . screens . datasource . management . backend . core . DRIVER1...
org . junit . Assert . assertNotNull ( deploymentInfo )
testEmptyPagination ( ) { com . hm . achievement . command . pagination . CommandPagination pagination = new com . hm . achievement . command . pagination . CommandPagination ( java . util . Collections . emptyList ( ) , 18 , langConfig ) ; java . util . List < java . lang . String > expected = java . util . Arrays . a...
org . junit . Assert . assertEquals ( expected , result )
savesAndRetrievesWindowBounds ( ) { java . awt . Rectangle windowBounds = new java . awt . Rectangle ( 150 , 120 , 1024 , 768 ) ; preferences . setSoapUIWindowBounds ( windowBounds ) ; com . eviware . soapui . support . preferences . UserPreferences independentPreferences = new com . eviware . soapui . support . prefer...
org . junit . Assert . assertThat ( independentPreferences . getSoapUIWindowBounds ( ) , org . hamcrest . CoreMatchers . is ( windowBounds ) )
testTransactionEventException2 ( ) { org . hyperledger . fabric . sdk . exception . TransactionEventException e = new org . hyperledger . fabric . sdk . exception . TransactionEventException ( org . hyperledger . fabric . sdk . exception . FabricExceptionsTest . MESSAGE , null ) ; "<AssertPlaceHolder>" ; } getTransacti...
org . junit . Assert . assertNull ( e . getTransactionEvent ( ) )
exportOrganizationWithDisabledUsers ( ) { final org . bonitasoft . engine . identity . User persistedUser = getIdentityAPI ( ) . createUser ( org . bonitasoft . engine . identity . OrganizationIT . LIUYANYAN_USERNAME , "bpm" ) ; final org . bonitasoft . engine . identity . UserUpdater updater = new org . bonitasoft . e...
org . junit . Assert . assertThat ( organizationContent )
testGetSessionId_SessionCookieNotFound ( ) { request . setCookies ( irrelevantCookie ) ; "<AssertPlaceHolder>" ; } getSessionId ( javax . servlet . http . HttpServletRequest ) { if ( ( request . getCookies ( ) ) == null ) { return null ; } for ( javax . servlet . http . Cookie cookie : request . getCookies ( ) ) { if (...
org . junit . Assert . assertNull ( org . sagebionetworks . repo . web . HttpRequestIdentifierUtils . getSessionId ( request ) )
copyRBForExcludeNull ( ) { org . slim3 . tester . MockServletContext servletContext = new org . slim3 . tester . MockServletContext ( ) ; org . slim3 . tester . MockHttpServletRequest src = new org . slim3 . tester . MockHttpServletRequest ( servletContext ) ; src . setAttribute ( "aaa" , null ) ; org . slim3 . util . ...
org . junit . Assert . assertThat ( dest . aaa , org . hamcrest . CoreMatchers . is ( "111" ) )
testSimpleWidgetRead ( ) { org . eclipse . thym . core . config . WidgetModel model = org . eclipse . thym . core . config . WidgetModel . getModel ( project . hybridProject ( ) ) ; org . eclipse . thym . core . config . Widget rm = model . getWidgetForRead ( ) ; "<AssertPlaceHolder>" ; } getWidgetForRead ( ) { long en...
org . junit . Assert . assertNotNull ( rm )
testLogResetsNamedLoggersWithPastTimeout ( ) { try ( org . apache . storm . utils . Time . SimulatedTime t = new org . apache . storm . utils . Time . SimulatedTime ( ) ) { long past = ( org . apache . storm . utils . Time . currentTimeMillis ( ) ) - 1000 ; java . util . TreeMap < java . lang . String , org . apache . ...
org . junit . Assert . assertEquals ( new java . util . TreeMap ( ) , atomConf . get ( ) )
isEmpty_isTrueAfterCreation ( ) { "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( childCollections . size ( ) ) == 0 ) && ( ( cheatsheets . size ( ) ) == 0 ) ; }
org . junit . Assert . assertTrue ( array . isEmpty ( ) )
getLongShouldWorkLittleEndianIndex0 ( ) { java . nio . ByteBuffer buf = java . nio . ByteBuffer . allocate ( 8 ) ; buf . order ( org . kaazing . gateway . util . LITTLE_ENDIAN ) ; buf . putLong ( 1234567890123456789L ) ; buf . flip ( ) ; long result = org . kaazing . gateway . util . Utils . getLong ( buf , 0 ) ; long ...
org . junit . Assert . assertEquals ( expected , result )
testIsEmpty ( ) { owl2vcs . changeset . MutableChangeSet target = new owl2vcs . changeset . MutableChangeSet ( ) ; boolean expected = true ; boolean actual = target . isEmpty ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( ( ( ( ( formatChange ) == null ) && ( ( ( prefixChanges ) == null ) || ( prefixChanges ....
org . junit . Assert . assertEquals ( expected , actual )
manageModificationProcess_VSERVER_UPDATED ( ) { paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ; doReturn ( Boolean . TRUE ) . when ( vServerProcessor . vserverComm ) . startVServer ( paramHandler ) ; org . oscm . app . iaas . data . FlowState newState = vServerProcessor . manageModificationProcess (...
org . junit . Assert . assertEquals ( FlowState . VSERVER_STARTING , newState )
testNPathsTo_Int_OutOfBoundIndex ( ) { org . openscience . cdk . interfaces . IAtomContainer simple = org . openscience . cdk . graph . ShortestPathsTest . simple ( ) ; org . openscience . cdk . graph . ShortestPaths paths = new org . openscience . cdk . graph . ShortestPaths ( simple , simple . getAtom ( 0 ) ) ; "<Ass...
org . junit . Assert . assertThat ( paths . nPathsTo ( 20 ) , org . hamcrest . CoreMatchers . is ( 0 ) )
test_toDate ( ) { java . util . GregorianCalendar calendarActual = new java . util . GregorianCalendar ( 2018 , 6 , 28 ) ; javax . xml . datatype . DatatypeFactory datatypeFactory = javax . xml . datatype . DatatypeFactory . newInstance ( ) ; javax . xml . datatype . XMLGregorianCalendar expectedXMLGregorianCalendar = ...
org . junit . Assert . assertEquals ( calendarActual . getTime ( ) , expectedXMLGregorianCalendar . toGregorianCalendar ( ) . getTime ( ) )
testTaggedTimer ( ) { taggedMetric = new com . github . sps . metrics . TaggedTimer ( tags ) ; "<AssertPlaceHolder>" ; } getTags ( ) { return tags ; }
org . junit . Assert . assertEquals ( tags , taggedMetric . getTags ( ) )
testFactoryAllNull ( ) { "<AssertPlaceHolder>" ; } getInstance ( java . util . List ) { java . util . ArrayList < java . util . List < java . lang . String > > key = new java . util . ArrayList < java . util . List < java . lang . String > > ( 1 ) ; key . add ( columnNames ) ; org . apache . hadoop . hive . serde2 . ob...
org . junit . Assert . assertNull ( factory . getInstance ( conf ) )
testSetLink ( ) { item . setLink ( "value" ) ; "<AssertPlaceHolder>" ; } getLink ( ) { return link ; }
org . junit . Assert . assertEquals ( "value" , item . getLink ( ) )
getUserSize_oneUser_oneSize ( ) { dbHandler . createUser ( new io . github . data4all . model . data . User ( "foo" , "bar" , "42" ) ) ; "<AssertPlaceHolder>" ; } getAllUser ( ) { final java . util . List < io . github . data4all . model . data . User > users = new java . util . ArrayList < io . github . data4all . mod...
org . junit . Assert . assertEquals ( 1 , dbHandler . getAllUser ( ) . size ( ) )
testPriorityHashOverNonHash ( ) { final com . orientechnologies . orient . core . index . OIndexUnique expectedResult = mockUniqueHashIndex ( ) ; final java . util . List < com . orientechnologies . orient . core . index . OIndex < ? > > indexes = java . util . Arrays . < com . orientechnologies . orient . core . index...
org . junit . Assert . assertSame ( result , expectedResult )
testFromEbXMLNull ( ) { org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery ( ) ; transformer . fromEbXML ( result , null ) ; "<AssertPlaceHolder>" ; } fromEbXML ( org . openehealth . ipf . com...
org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery ( ) , result )
testDigestAuthenticationQopIntOnlyNonRepeatableEntity ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest request = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "Post" , "/" ) ; request . setEntity ( new org . apache . hc . core5 . http . io . entity . InputStreamEntity ( new...
org . junit . Assert . assertTrue ( authscheme . isResponseReady ( host , credentialsProvider , null ) )
testToFromStringWithMapping ( ) { java . util . Map < java . lang . String , java . lang . String > tableMappingTo = new java . util . HashMap ( ) ; tableMappingTo . put ( "table1" , "1.column3" 7 ) ; tableMappingTo . put ( "1.column3" 4 , "2" ) ; java . util . Map < java . lang . String , java . lang . String > column...
org . junit . Assert . assertEquals ( expectedMD , actualMD )
testExtractTenantFromBGHeaderInvalid ( ) { java . lang . String businessGroup = "test" ; com . vmware . xenon . common . Operation op = new com . vmware . xenon . common . Operation ( ) ; op . addRequestHeader ( OperationUtil . PROJECT_ADMIRAL_HEADER , businessGroup ) ; java . lang . String tenantLink = com . vmware . ...
org . junit . Assert . assertTrue ( ( tenantLink == null ) )
testShortAnd ( ) { short theValue = 3 ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 2 , ( theValue & 2 ) , 0 )
testTransform ( ) { java . lang . String expected = "beginDocument<sp>[[syntax]=[XWiki<sp>2.1]]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "beginParagraph\n" + "onImage<sp>[Typed<sp>=<sp>[true]<sp>Type<sp>=<sp>[icon]<sp>Reference<sp>=<sp>[cancel]]<sp>[true]\n" 5 ) + "onImage<sp>[Typed<sp>=<sp>[true]<sp>Type<sp>...
org . junit . Assert . assertEquals ( expected , printer . toString ( ) )
testConfigureGridAtNotNull_8_8_8_8 ( ) { final org . jtrfp . trcl . obj . MiniMap mm = getSubject ( ) ; mm . configureGridAt ( 8 , 8 , 16 ) ; "<AssertPlaceHolder>" ; } getGrid ( ) { if ( ( grid ) == null ) { final int diameterInTiles = getDiameterInTiles ( ) ; grid = new org . jtrfp . trcl . gpu . SettableTexture [ dia...
org . junit . Assert . assertNotNull ( mm . getGrid ( ) [ 8 ] [ 8 ] )
testPerfGetRootDse ( ) { org . apache . directory . server . core . api . interceptor . context . GetRootDseOperationContext getRootDseContext = new org . apache . directory . server . core . api . interceptor . context . GetRootDseOperationContext ( getService ( ) . getAdminSession ( ) ) ; org . apache . directory . a...
org . junit . Assert . assertNotNull ( rootDse )
testGetEventInstancesOrderByNameDesc ( ) { final org . bonitasoft . engine . core . process . instance . model . SProcessInstance processInstance = createSProcessInstance ( ) ; final org . bonitasoft . engine . core . process . instance . model . event . SEventInstance eventInstance1 = createSEndEventInstance ( "EndEve...
org . junit . Assert . assertEquals ( 2 , eventInstances . size ( ) )
syncPropertyDefinitions ( ) { org . apache . jackrabbit . oak . plugins . index . search . util . IndexDefinitionBuilder defnb = new org . apache . jackrabbit . oak . plugins . index . search . util . IndexDefinitionBuilder ( ) ; defnb . indexRule ( "nt:base" ) . property ( "foo" ) . sync ( ) ; org . apache . jackrabbi...
org . junit . Assert . assertTrue ( defn . hasSyncPropertyDefinitions ( ) )
param ( ) { tester . request . setParameter ( "aaa" , "111" ) ; "<AssertPlaceHolder>" ; } param ( java . lang . CharSequence ) { if ( name == null ) { throw new java . lang . NullPointerException ( "The<sp>name<sp>parameter<sp>must<sp>not<sp>be<sp>null." ) ; } return request . getParameter ( name . toString ( ) ) ; }
org . junit . Assert . assertThat ( controller . param ( "aaa" ) , org . hamcrest . CoreMatchers . is ( "111" ) )
testSetChecked_marksItemCached ( ) { grid = new org . eclipse . nebula . widgets . grid . Grid ( shell , org . eclipse . swt . SWT . VIRTUAL ) ; org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . GridItem ( grid , org . eclipse . swt . SWT . NONE ) ; item . setChecke...
org . junit . Assert . assertTrue ( item . isCached ( ) )
test_map_use_int_key_issue_1332 ( ) { java . lang . String str = "{abc<sp>:<sp>{1:1}}" ; org . nutz . json . generic . IntKeyMap map = org . nutz . json . Json . fromJson ( org . nutz . json . generic . IntKeyMap . class , str ) ; System . out . println ( map ) ; "<AssertPlaceHolder>" ; } getAbc ( ) { return "ABC" ; }
org . junit . Assert . assertTrue ( map . getAbc ( ) . containsKey ( 1 ) )
testStringMatchesReservedString ( ) { java . lang . String reserved = "fb" ; org . dataconservancy . packaging . tool . impl . support . validation . GenericCharacterMatcher underTest = new org . dataconservancy . packaging . tool . impl . support . validation . GenericCharacterMatcher ( reserved ) ; java . lang . Stri...
org . junit . Assert . assertTrue ( underTest . matches ( toTest ) )
likelyhoodRatioForAnySampleIs50PercentWithSingleEntryAvailable ( ) { final double [ ] voiceSample2 = new double [ 1024 ] ; fillWithNoise ( voiceSample2 ) ; recognito . createVoicePrint ( "1" , voiceSample ) ; java . util . List < com . bitsinharmony . recognito . MatchResult < java . lang . String > > matches = recogni...
org . junit . Assert . assertThat ( match . getLikelihoodRatio ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 50 ) ) )
withListenerMethodShouldReturnSameInstanceOfBuilder ( ) { java . lang . String url = "http://test" ; com . navercorp . volleyextensions . volleyer . http . HttpMethod method = com . navercorp . volleyextensions . volleyer . http . HttpMethod . GET ; com . navercorp . volleyextensions . volleyer . http . HttpContent htt...
org . junit . Assert . assertTrue ( ( builder == newBuilder ) )
testSameProcessBagsAreEquals_shouldSucceed ( ) { org . openengsb . core . workflow . api . model . ProcessBag processBag = new org . openengsb . core . workflow . api . model . ProcessBag ( ) ; processBag . setContext ( "blub" ) ; processBag . setProcessId ( "lala" ) ; processBag . setUser ( "cool" ) ; "<AssertPlaceHol...
org . junit . Assert . assertTrue ( processBag . equals ( processBag ) )
testMatchRules ( ) { System . out . println ( "*****<sp>testMatchRules<sp>*****" ) ; int matchCount = 0 ; for ( com . codemagi . burp . MatchRule rule : matchRules ) { java . util . regex . Matcher matcher = rule . getPattern ( ) . matcher ( testResponse ) ; int expectedMatches = ( ( rule . getExpectedMatches ( ) ) != ...
org . junit . Assert . assertEquals ( matchRules . size ( ) , matchCount )
testConvertWithNoRelations ( ) { org . lnu . is . resource . specoffer . benefit . SpecOfferBenefitResource source = new org . lnu . is . resource . specoffer . benefit . SpecOfferBenefitResource ( ) ; org . lnu . is . domain . specoffer . SpecOfferBenefit expected = new org . lnu . is . domain . specoffer . SpecOfferB...
org . junit . Assert . assertEquals ( expected , actual )
testListUsers ( ) { org . osgi . service . useradmin . User user1 = org . mockito . Mockito . mock ( org . osgi . service . useradmin . User . class ) ; org . mockito . Mockito . when ( user1 . getType ( ) ) . thenReturn ( Role . USER ) ; org . mockito . Mockito . when ( user1 . getName ( ) ) . thenReturn ( "user1" ) ;...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "user1" , "user2" } , roles )
testCreateParametersEntries ( ) { "<AssertPlaceHolder>" ; } createParametersEntries ( ) { return new org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . Parameters . Entries ( ) ; }
org . junit . Assert . assertNotNull ( factory . createParametersEntries ( ) )
test_pass_out_unsigned_short ( ) { org . omg . CORBA . ShortHolder x = new org . omg . CORBA . ShortHolder ( ) ; server . pass_out_unsigned_short ( x ) ; "<AssertPlaceHolder>" ; } pass_out_unsigned_short ( org . omg . CORBA . ShortHolder ) { x . value = 79 ; }
org . junit . Assert . assertEquals ( 79 , x . value )
testSharedAlertWhenTwoSharedAlert ( ) { com . salesforce . dva . argus . service . UserService userService = system . getServiceFactory ( ) . getUserService ( ) ; com . salesforce . dva . argus . service . AlertService alertService = system . getServiceFactory ( ) . getAlertService ( ) ; com . salesforce . dva . argus ...
org . junit . Assert . assertEquals ( expectedSharedResult , alertService . findSharedAlerts ( false , null , null ) )
testBuildWithParametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "name" ; org . lnu . is . domain . education . form . type . EducationFormType context = new org . lnu . is . domain . education . form . type . EducationFormType...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
createLayoutTemplate ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . layouttpl . tests . LAYOUT_TEMPLATE ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningProjectBuildingJobs ( ) ; viewAction . project . refres...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( com . liferay . ide . ui . layouttpl . tests . NewLayoutTemplateModuleWizardLiferayWorkspaceGradleTests . liferayWorkspace . getWarFiles ( project . getName ( ) ) ) )
testSendingNodeId ( ) { try { i5 . las2peer . security . UserAgentImpl eve = i5 . las2peer . testing . MockAgentFactory . getEve ( ) ; i5 . las2peer . security . UserAgentImpl adam = i5 . las2peer . testing . MockAgentFactory . getAdam ( ) ; eve . unlock ( "evespass" ) ; i5 . las2peer . communication . Message message ...
org . junit . Assert . assertEquals ( new java . lang . Long ( 100 ) , andBack . getSendingNodeId ( ) )
model_6 ( ) { org . apache . jena . rdf . model . Model assem = org . apache . jena . util . FileManager . get ( ) . loadModel ( ( ( org . apache . jena . sdb . test . misc . TestAssembler . dir ) + "graph-assembler.ttl" ) ) ; org . apache . jena . rdf . model . Resource xNamed = assem . getResource ( "http://example/t...
org . junit . Assert . assertTrue ( model3 . contains ( s , p , o2 ) )
testHashCode ( ) { if ( value1 . equals ( value2 ) ) { "<AssertPlaceHolder>" ; } } hashCode ( ) { return getBusinessKey ( ) . hashCode ( ) ; }
org . junit . Assert . assertEquals ( value1 . hashCode ( ) , value2 . hashCode ( ) )
mustExecutOnAbortOrCancelProcess_return_false_if_stable ( ) { boundary . setStable ( true ) ; "<AssertPlaceHolder>" ; } mustExecuteOnAbortOrCancelProcess ( ) { return false ; }
org . junit . Assert . assertFalse ( boundary . mustExecuteOnAbortOrCancelProcess ( ) )
shouldValidateAndReturnFalseForOrFilterWithIncompatibleProperties ( ) { final uk . gov . gchq . gaffer . store . schema . ViewValidator validator = new uk . gov . gchq . gaffer . store . schema . ViewValidator ( ) ; final uk . gov . gchq . gaffer . data . elementdefinition . view . View view = new uk . gov . gchq . gaf...
org . junit . Assert . assertFalse ( result . isValid ( ) )
multipleAndSingleSupportedValidator ( ) { final org . springframework . validation . Validator validator1 = mock ( org . springframework . validation . Validator . class , "v1" ) ; final org . springframework . validation . Validator validator2 = mock ( org . springframework . validation . Validator . class , "v2" ) ; ...
org . junit . Assert . assertTrue ( cv . supports ( java . util . Date . class ) )
testCallInvokedWithCorrectService ( ) { com . bazaarvoice . ostrich . pool . AbstractServicePoolTestingHarness . Service expectedService = mock ( com . bazaarvoice . ostrich . pool . AbstractServicePoolTestingHarness . Service . class ) ; when ( _serviceFactory . create ( com . bazaarvoice . ostrich . pool . AbstractSe...
org . junit . Assert . assertSame ( expectedService , actualService )
testGetJavaPOSIX ( ) { jnr . posix . POSIX posix = jnr . posix . POSIXFactory . getJavaPOSIX ( ) ; "<AssertPlaceHolder>" ; } isNative ( ) { org . junit . Assert . assertFalse ( "JavaPOSIX<sp>isNative<sp>should<sp>be<sp>false" , posix . isNative ( ) ) ; }
org . junit . Assert . assertFalse ( posix . isNative ( ) )
testDatatypeValue11 ( ) { java . lang . String init = "insert<sp>data<sp>{" + ( ( "graph<sp>us:g1<sp>{<sp><Jack><sp>rdf:value<sp>1,<sp>1.0,<sp>01,<sp>'1'^^xsd:long,<sp>'01'^^xsd:byte,<sp>1e0,<sp>2<sp>}" + "graph<sp>us:g2<sp>{<sp><Jack><sp>rdf:value<sp>1,<sp>1.0,<sp>01,<sp>'1'^^xsd:long,<sp>'01'^^xsd:byte,<sp>1e0,<sp>2<...
org . junit . Assert . assertEquals ( 12 , g . size ( ) )
testLangProfile ( ) { com . cybozu . labs . langdetect . util . LangProfile profile = new com . cybozu . labs . langdetect . util . LangProfile ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( profile . name , null )
testWDAbsolute ( ) { org . apache . hadoop . fs . Path absoluteDir = getTestRootPath ( fSys , "test/existingDir" ) ; fSys . mkdirs ( absoluteDir ) ; fSys . setWorkingDirectory ( absoluteDir ) ; "<AssertPlaceHolder>" ; } getWorkingDirectory ( ) { return new org . apache . hadoop . fs . Path ( "/" ) . makeQualified ( get...
org . junit . Assert . assertEquals ( absoluteDir , fSys . getWorkingDirectory ( ) )
testCreateSampleWithDotInName ( ) { java . lang . String name = "HG007.sample" ; org . opencb . commons . datastore . core . QueryResult < org . opencb . opencga . catalog . managers . Sample > sampleQueryResult = catalogManager . getSampleManager ( ) . create ( studyFqn , new org . opencb . opencga . catalog . manager...
org . junit . Assert . assertEquals ( name , sampleQueryResult . first ( ) . getId ( ) )
testToString ( ) { java . lang . String name = "name" ; org . bff . javampd . MPDItem item = new org . bff . javampd . MPDItemTest . TestItem ( name ) ; "<AssertPlaceHolder>" ; } toString ( ) { return getFile ( ) ; }
org . junit . Assert . assertEquals ( name , item . toString ( ) )
test_adjust_toLocalDate ( ) { org . threeten . extra . chrono . Symmetry454Date sym454 = org . threeten . extra . chrono . Symmetry454Date . of ( 2000 , 1 , 4 ) ; org . threeten . extra . chrono . Symmetry454Date test = sym454 . with ( java . time . LocalDate . of ( 2012 , 7 , 6 ) ) ; "<AssertPlaceHolder>" ; } of ( int...
org . junit . Assert . assertEquals ( org . threeten . extra . chrono . Symmetry454Date . of ( 2012 , 7 , 5 ) , test )
testResponseAsImage ( ) { request . setResponseAsImage ( true ) ; "<AssertPlaceHolder>" ; } getResponseAsImage ( ) { return getBooleanParameter ( org . piwik . java . tracking . PiwikRequest . RESPONSE_AS_IMAGE ) ; }
org . junit . Assert . assertEquals ( true , request . getResponseAsImage ( ) )
diskUuidToSerialTest ( ) { final java . lang . String uuid = "38400000-8cf0-11bd-b24e-10b96e4ef00d" ; final java . lang . String expected = "384000008cf011bdb24e" ; final com . cloud . agent . resource . kvm . LibvirtComputingResource lcr = new com . cloud . agent . resource . kvm . LibvirtComputingResource ( ) ; "<Ass...
org . junit . Assert . assertEquals ( expected , lcr . diskUuidToSerial ( uuid ) )
testContain ( ) { org . locationtech . jts . geom . GeometryFactory fact = new org . locationtech . jts . geom . GeometryFactory ( ) ; final org . locationtech . jts . geom . LinearRing ring = fact . createLinearRing ( new org . locationtech . jts . geom . Coordinate [ ] { new org . locationtech . jts . geom . Coordina...
org . junit . Assert . assertTrue ( expected . equals ( result ) )
testSimpleQuery ( ) { final java . util . Collection c = this . store . getQueryManager ( ) . createQuery ( ( "SELECT<sp>FROM<sp>org.xwiki.store.legacy.internal.datanucleus.PersistableXWikiDocument<sp>WHERE<sp>" + "fullName<sp>==<sp>\"XWiki.XWikiPreferences\"" ) , "jdoql" ) . execute ( ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertTrue ( ( ( c . size ( ) ) == 1 ) )
testClose ( ) { System . out . println ( "close" ) ; com . bixly . pastevid . download . DownloadManager instance = com . bixly . pastevid . download . DownloadManager . getInstance ( ) ; instance . start ( ) ; com . bixly . pastevid . util . TimeUtil . skipToMyLou ( 1 ) ; instance . close ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertFalse ( instance . isRunning ( ) )
testSearchPub1 ( ) { jannovar . interval . IntervalTree < java . lang . String > tree = new jannovar . interval . IntervalTree < java . lang . String > ( getIntervalList2 ( ) ) ; java . util . List < java . lang . String > qy = tree . search ( 1 , 1 ) ; "<AssertPlaceHolder>" ; } get ( int ) { return _objects . get ( in...
org . junit . Assert . assertEquals ( "a" , qy . get ( 0 ) )
testWordsWithCircumflex ( ) { zemberek . morphology . TurkishMorphology morphology = getMorphology ( "zek" ) ; zemberek . morphology . analysis . WordAnalysis result = morphology . analyze ( "zek" ) ; "<AssertPlaceHolder>" ; } analysisCount ( ) { return analysisResults . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , result . analysisCount ( ) )
shouldThrowLockExceptionIfThrowExceptionIsTrue ( ) { com . mongodb . MongoClient mongoClient = mock ( com . mongodb . MongoClient . class ) ; com . mongodb . client . MongoDatabase db = new com . github . fakemongo . Fongo ( com . github . mongobee . dao . ChangeEntryDaoTest . TEST_SERVER ) . getDatabase ( com . github...
org . junit . Assert . assertFalse ( hasLock )
testInputWithInvalidKey ( ) { java . net . URI resource = getClass ( ) . getResource ( "/illegal_key_in_input.sl" ) . toURI ( ) ; io . cloudslang . lang . compiler . modeller . result . ExecutableModellingResult result = compiler . preCompileSource ( io . cloudslang . lang . compiler . SlangSource . fromFile ( resource...
org . junit . Assert . assertTrue ( ( ( result . getErrors ( ) . size ( ) ) > 0 ) )
testConvertReplyOneDoc ( ) { final java . util . List < com . allanbank . mongodb . bson . Document > docs = java . util . Arrays . asList ( com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . build ( ) ) ; final com . allanbank . mongodb . client . message . Reply reply = new com . allanbank . mo...
org . junit . Assert . assertSame ( docs . get ( 0 ) , callback . convert ( reply ) )